Class: ReplaceStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/gimuby/genetic/population/replace_strategy/replace_strategy.rb

Instance Method Summary collapse

Instance Method Details

#replace(population, selected = nil) ⇒ Object

Replace solution within the population This function should call population.pick if selected is nil

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/gimuby/genetic/population/replace_strategy/replace_strategy.rb', line 5

def replace(population, selected = nil)
  raise NotImplementedError
end