Class: ReplaceStrategy
- Inherits:
-
Object
- Object
- ReplaceStrategy
- Defined in:
- lib/gimuby/genetic/population/replace_strategy/replace_strategy.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#replace(population, selected = nil) ⇒ Object
Replace solution within the population This function should call population.pick if selected is nil.
Instance Method Details
#replace(population, selected = nil) ⇒ Object
Replace solution within the population This function should call population.pick if selected is nil
5 6 7 |
# File 'lib/gimuby/genetic/population/replace_strategy/replace_strategy.rb', line 5 def replace(population, selected = nil) raise NotImplementedError end |