Class: OPL::Row
- Inherits:
-
Object
- Object
- OPL::Row
- Defined in:
- lib/opl.rb
Instance Attribute Summary collapse
-
#constraint ⇒ Object
Returns the value of attribute constraint.
-
#epsilon ⇒ Object
Returns the value of attribute epsilon.
-
#lower_bound ⇒ Object
Returns the value of attribute lower_bound.
-
#name ⇒ Object
Returns the value of attribute name.
-
#upper_bound ⇒ Object
Returns the value of attribute upper_bound.
-
#variable_coefficient_pairs ⇒ Object
Returns the value of attribute variable_coefficient_pairs.
Instance Method Summary collapse
-
#initialize(name, lower_bound, upper_bound, epsilon) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(name, lower_bound, upper_bound, epsilon) ⇒ Row
Returns a new instance of Row.
846 847 848 849 850 851 852 |
# File 'lib/opl.rb', line 846 def initialize(name, lower_bound, upper_bound, epsilon) @name = name @lower_bound = lower_bound @upper_bound = upper_bound @variable_coefficient_pairs = [] @epsilon = epsilon end |
Instance Attribute Details
#constraint ⇒ Object
Returns the value of attribute constraint.
840 841 842 |
# File 'lib/opl.rb', line 840 def constraint @constraint end |
#epsilon ⇒ Object
Returns the value of attribute epsilon.
844 845 846 |
# File 'lib/opl.rb', line 844 def epsilon @epsilon end |
#lower_bound ⇒ Object
Returns the value of attribute lower_bound.
841 842 843 |
# File 'lib/opl.rb', line 841 def lower_bound @lower_bound end |
#name ⇒ Object
Returns the value of attribute name.
839 840 841 |
# File 'lib/opl.rb', line 839 def name @name end |
#upper_bound ⇒ Object
Returns the value of attribute upper_bound.
842 843 844 |
# File 'lib/opl.rb', line 842 def upper_bound @upper_bound end |
#variable_coefficient_pairs ⇒ Object
Returns the value of attribute variable_coefficient_pairs.
843 844 845 |
# File 'lib/opl.rb', line 843 def variable_coefficient_pairs @variable_coefficient_pairs end |