Class: SchafferSolution
- Inherits:
-
FunctionBasedSolution
- Object
- Solution
- FunctionBasedSolution
- SchafferSolution
- Defined in:
- lib/gimuby/problem/schaffer/schaffer_solution.rb
Instance Attribute Summary
Attributes inherited from Solution
#check_strategy, #mutation_strategy, #new_generation_strategy
Instance Method Summary collapse
Methods inherited from FunctionBasedSolution
#get_solution_representation, #initialize, #set_solution_representation
Methods inherited from Solution
#get_fitness, #get_solution_representation, #initialize, #mutate, #reproduce, #reset_fitness_state, #set_solution_representation
Constructor Details
This class inherits a constructor from FunctionBasedSolution
Instance Method Details
#evaluate ⇒ Object
7 8 9 |
# File 'lib/gimuby/problem/schaffer/schaffer_solution.rb', line 7 def evaluate get_schaffer.evaluate(@x_values.clone) end |