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.
832 833 834 835 |
# File 'lib/opl.rb', line 832 def initialize(function, optimization) @function = function @optimization = optimization end |
Instance Attribute Details
#addition ⇒ Object
Returns the value of attribute addition.
830 831 832 |
# File 'lib/opl.rb', line 830 def addition @addition end |
#expanded_function ⇒ Object
Returns the value of attribute expanded_function.
826 827 828 |
# File 'lib/opl.rb', line 826 def @expanded_function end |
#function ⇒ Object
Returns the value of attribute function.
825 826 827 |
# File 'lib/opl.rb', line 825 def function @function end |
#optimization ⇒ Object
minimize, maximize, equals
827 828 829 |
# File 'lib/opl.rb', line 827 def optimization @optimization end |
#optimized_value ⇒ Object
Returns the value of attribute optimized_value.
829 830 831 |
# File 'lib/opl.rb', line 829 def optimized_value @optimized_value end |
#variable_coefficient_pairs ⇒ Object
Returns the value of attribute variable_coefficient_pairs.
828 829 830 |
# File 'lib/opl.rb', line 828 def variable_coefficient_pairs @variable_coefficient_pairs end |