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
727 728 729 730 |
# File 'lib/opl.rb', line 727 def initialize(function, optimization) @function = function @optimization = optimization end |
Instance Attribute Details
#addition ⇒ Object
Returns the value of attribute addition.
725 726 727 |
# File 'lib/opl.rb', line 725 def addition @addition end |
#expanded_function ⇒ Object
Returns the value of attribute expanded_function.
721 722 723 |
# File 'lib/opl.rb', line 721 def end |
#function ⇒ Object
Returns the value of attribute function.
720 721 722 |
# File 'lib/opl.rb', line 720 def function @function end |
#optimization ⇒ Object
minimize, maximize, equals
722 723 724 |
# File 'lib/opl.rb', line 722 def optimization @optimization end |
#optimized_value ⇒ Object
Returns the value of attribute optimized_value.
724 725 726 |
# File 'lib/opl.rb', line 724 def optimized_value @optimized_value end |
#variable_coefficient_pairs ⇒ Object
Returns the value of attribute variable_coefficient_pairs.
723 724 725 |
# File 'lib/opl.rb', line 723 def variable_coefficient_pairs @variable_coefficient_pairs end |