gimuby 0.7.4 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gimuby/genetic/solution/solution.rb +3 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 332ce23b0a0267694b75c74b6b0129ac90d01428
|
4
|
+
data.tar.gz: e902cde4d59d52ab8f63d5a2c0e381a8007f17ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc7fc515f24af95ae94120eb96a1500684f4b424156d11295cfc2dbeb04270aa022e531e72a715fdddcfcbd1421b8e8b1d08b46bb46d825cf444167b1f2961de
|
7
|
+
data.tar.gz: 02aa57f6d568e0640dd8ebd42ea864a23b8225a1d412943cf5bce70521458aabcb8f98f5efab3079860ae61ad62cf039e38146bde35a507d24b3e410d5c22543
|
data/Gemfile.lock
CHANGED
@@ -44,11 +44,10 @@ class Solution
|
|
44
44
|
def reproduce(sol1, sol2)
|
45
45
|
new_solutions_representations = @new_generation_strategy.reproduce(sol1, sol2)
|
46
46
|
new_solutions_representations.map do |representation|
|
47
|
-
solution =
|
47
|
+
solution = sol1.clone
|
48
|
+
solution.set_solution_representation representation
|
48
49
|
solution.check
|
49
|
-
solution.
|
50
|
-
solution.check_strategy = sol1.check_strategy
|
51
|
-
solution.new_generation_strategy = sol1.new_generation_strategy
|
50
|
+
solution.reset_fitness_state
|
52
51
|
solution
|
53
52
|
end
|
54
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gimuby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frantz Miccoli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Implemented for academic purpose, Gimuby is also suitable for teaching purpose. As far as we know this implementation of genetic algorithms is the most advanced available in Ruby for itintegrates an implementation of the island model, reusable patterns for user problem composition and optimal configuration genetic algorithm
|