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