Class: OPL::Objective
- Inherits:
-
Object
- Object
- OPL::Objective
- Defined in:
- lib/opl.rb
Instance Attribute Summary collapse
-
#addition ⇒ Object
Returns the value of attribute addition.
-
#expanded_function ⇒ Object
Returns the value of attribute expanded_function.
-
#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.
819 820 821 822 |
# File 'lib/opl.rb', line 819 def initialize(function, optimization) @function = function @optimization = optimization end |
Instance Attribute Details
#addition ⇒ Object
Returns the value of attribute addition.
817 818 819 |
# File 'lib/opl.rb', line 817 def addition @addition end |
#expanded_function ⇒ Object
Returns the value of attribute expanded_function.
813 814 815 |
# File 'lib/opl.rb', line 813 def end |
#function ⇒ Object
Returns the value of attribute function.
812 813 814 |
# File 'lib/opl.rb', line 812 def function @function end |
#optimization ⇒ Object
minimize, maximize, equals
814 815 816 |
# File 'lib/opl.rb', line 814 def optimization @optimization end |
#optimized_value ⇒ Object
Returns the value of attribute optimized_value.
816 817 818 |
# File 'lib/opl.rb', line 816 def optimized_value @optimized_value end |
#variable_coefficient_pairs ⇒ Object
Returns the value of attribute variable_coefficient_pairs.
815 816 817 |
# File 'lib/opl.rb', line 815 def variable_coefficient_pairs @variable_coefficient_pairs end |