class SphereSolution

Public Instance Methods

evaluate() click to toggle source
# File lib/gimuby/problem/sphere/sphere_solution.rb, line 6
def evaluate
  get_sphere.evaluate(@x_values.clone)
end

Protected Instance Methods

get_dimension_number() click to toggle source
# File lib/gimuby/problem/sphere/sphere_solution.rb, line 20
def get_dimension_number
  2
end
get_sphere() click to toggle source
# File lib/gimuby/problem/sphere/sphere_solution.rb, line 24
def get_sphere
  Sphere.new
end
get_x_value_max() click to toggle source
# File lib/gimuby/problem/sphere/sphere_solution.rb, line 16
def get_x_value_max
  5.12
end
get_x_value_min() click to toggle source
# File lib/gimuby/problem/sphere/sphere_solution.rb, line 12
def get_x_value_min
  -5.12
end