Class: EvoSynth::Recombinations::EdgeRecombination
- Inherits:
-
Object
- Object
- EvoSynth::Recombinations::EdgeRecombination
- Defined in:
- lib/evosynth/operators/recombinations/edge_recombination.rb
Overview
KANTENREKOMBINATION (Weicker page 29)
this can only recombine permutations (see partially mapped crossover).
Instance Method Summary collapse
Instance Method Details
#recombine(parent_one, parent_two) ⇒ Object
37 38 39 40 41 42 |
# File 'lib/evosynth/operators/recombinations/edge_recombination.rb', line 37 def recombine(parent_one, parent_two) child_one = recombine_to_one(parent_one, parent_two) child_two = recombine_to_one(parent_two, parent_one) [child_one, child_two] end |
#to_s ⇒ Object
44 45 46 |
# File 'lib/evosynth/operators/recombinations/edge_recombination.rb', line 44 def to_s "edge recombination" end |