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.
805 806 807 808 |
# File 'lib/opl.rb', line 805 def initialize(function, optimization) @function = function @optimization = optimization end |
Instance Attribute Details
#addition ⇒ Object
Returns the value of attribute addition.
803 804 805 |
# File 'lib/opl.rb', line 803 def addition @addition end |
#expanded_function ⇒ Object
Returns the value of attribute expanded_function.
799 800 801 |
# File 'lib/opl.rb', line 799 def @expanded_function end |
#function ⇒ Object
Returns the value of attribute function.
798 799 800 |
# File 'lib/opl.rb', line 798 def function @function end |
#optimization ⇒ Object
minimize, maximize, equals
800 801 802 |
# File 'lib/opl.rb', line 800 def optimization @optimization end |
#optimized_value ⇒ Object
Returns the value of attribute optimized_value.
802 803 804 |
# File 'lib/opl.rb', line 802 def optimized_value @optimized_value end |
#variable_coefficient_pairs ⇒ Object
Returns the value of attribute variable_coefficient_pairs.
801 802 803 |
# File 'lib/opl.rb', line 801 def variable_coefficient_pairs @variable_coefficient_pairs end |