Class: RastriginSolution
- Inherits:
-
FunctionBasedSolution
- Object
- Solution
- FunctionBasedSolution
- RastriginSolution
- Defined in:
- lib/gimuby/problem/rastrigin/rastrigin_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
13 14 15 |
# File 'lib/gimuby/problem/rastrigin/rastrigin_solution.rb', line 13 def evaluate get_rastrigin.evaluate(@x_values) end |