Class: OPL::Objective
- Inherits:
-
Object
- Object
- OPL::Objective
- Defined in:
- lib/opl.rb
Instance Attribute Summary collapse
-
#function ⇒ Object
Returns the value of attribute function.
-
#optimization ⇒ Object
minimize, maximize, equals.
-
#optimized_value ⇒ Object
Returns the value of attribute optimized_value.
-
#variable_coefficient_pairs ⇒ Object
Returns the value of attribute variable_coefficient_pairs.
Instance Method Summary collapse
-
#initialize(function, optimization) ⇒ Objective
constructor
A new instance of Objective.
Constructor Details
#initialize(function, optimization) ⇒ Objective
Returns a new instance of Objective.
634 635 636 637 |
# File 'lib/opl.rb', line 634 def initialize(function, optimization) @function = function @optimization = optimization end |
Instance Attribute Details
#function ⇒ Object
Returns the value of attribute function.
629 630 631 |
# File 'lib/opl.rb', line 629 def function @function end |
#optimization ⇒ Object
minimize, maximize, equals
630 631 632 |
# File 'lib/opl.rb', line 630 def optimization @optimization end |
#optimized_value ⇒ Object
Returns the value of attribute optimized_value.
632 633 634 |
# File 'lib/opl.rb', line 632 def optimized_value @optimized_value end |
#variable_coefficient_pairs ⇒ Object
Returns the value of attribute variable_coefficient_pairs.
631 632 633 |
# File 'lib/opl.rb', line 631 def variable_coefficient_pairs @variable_coefficient_pairs end |