Class: SphereSolution

Inherits:
FunctionBasedSolution show all
Defined in:
lib/gimuby/problem/sphere/sphere_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

#evaluateObject



6
7
8
# File 'lib/gimuby/problem/sphere/sphere_solution.rb', line 6

def evaluate
  get_sphere.evaluate(@x_values.clone)
end