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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8fa1f14d88cc2c2438f6eb743c7cdf9c561ef17d
4
- data.tar.gz: e60797cd70d4c296558a50957053e1f61079f9e1
3
+ metadata.gz: 332ce23b0a0267694b75c74b6b0129ac90d01428
4
+ data.tar.gz: e902cde4d59d52ab8f63d5a2c0e381a8007f17ce
5
5
  SHA512:
6
- metadata.gz: 3002d33c504910332c9cd9d3f394a09e481556621d7506d18115d38c4bd4882700be74cf6f285a6a93c37d89f6c5d43aa3aedc669592109d3c3f24221bdb10ec
7
- data.tar.gz: 7d4a451cceb7a91331b94c58a87e2b3a4ea113bc4e97943c1f3d1331e2bbcbceb4af913d00b4f375a07b163ab23b282191e4f4c5e40b67d8ccce82d903a915b3
6
+ metadata.gz: fc7fc515f24af95ae94120eb96a1500684f4b424156d11295cfc2dbeb04270aa022e531e72a715fdddcfcbd1421b8e8b1d08b46bb46d825cf444167b1f2961de
7
+ data.tar.gz: 02aa57f6d568e0640dd8ebd42ea864a23b8225a1d412943cf5bce70521458aabcb8f98f5efab3079860ae61ad62cf039e38146bde35a507d24b3e410d5c22543
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gimuby (0.7.3)
4
+ gimuby (0.8.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 = self.class.new(representation)
47
+ solution = sol1.clone
48
+ solution.set_solution_representation representation
48
49
  solution.check
49
- solution.mutation_strategy = sol1.mutation_strategy
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.7.4
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: 2014-08-06 00:00:00.000000000 Z
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