Class: MinMulti2ObjectiveFuncOfDimensions

Inherits:
MinFuncOfDimensionObj
  • Object
show all
Defined in:
lib/feldtruby/optimize/problems/multi_objective_problems.rb

Instance Method Summary collapse

Instance Method Details

#calc_func1(x) ⇒ Object

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/feldtruby/optimize/problems/multi_objective_problems.rb', line 25

def calc_func1(x)
  raise NotImplementedError
end

#calc_func2(x) ⇒ Object

Raises:

  • (NotImplementedError)


29
30
31
# File 'lib/feldtruby/optimize/problems/multi_objective_problems.rb', line 29

def calc_func2(x)
  raise NotImplementedError
end

#min_solutionsObject

Known optima that gives the minimum value.



13
14
15
# File 'lib/feldtruby/optimize/problems/multi_objective_problems.rb', line 13

def min_solutions
  @min_solutions ||= ([[0.0] * dimension])
end

#minimum1Object



4
5
6
# File 'lib/feldtruby/optimize/problems/multi_objective_problems.rb', line 4

def minimum1
  0.0
end

#minimum2Object



8
9
10
# File 'lib/feldtruby/optimize/problems/multi_objective_problems.rb', line 8

def minimum2
  0.0
end

#objective_min_func1(x) ⇒ Object



17
18
19
# File 'lib/feldtruby/optimize/problems/multi_objective_problems.rb', line 17

def objective_min_func1(x)
  calc_func1(x) - minimum1
end

#objective_min_func2(x) ⇒ Object



21
22
23
# File 'lib/feldtruby/optimize/problems/multi_objective_problems.rb', line 21

def objective_min_func2(x)
  calc_func2(x) - minimum2
end