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.
819 820 821 822 823 824 825 |
# File 'lib/opl.rb', line 819 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.
813 814 815 |
# File 'lib/opl.rb', line 813 def constraint @constraint end |
#epsilon ⇒ Object
Returns the value of attribute epsilon.
817 818 819 |
# File 'lib/opl.rb', line 817 def epsilon @epsilon end |
#lower_bound ⇒ Object
Returns the value of attribute lower_bound.
814 815 816 |
# File 'lib/opl.rb', line 814 def lower_bound @lower_bound end |
#name ⇒ Object
Returns the value of attribute name.
812 813 814 |
# File 'lib/opl.rb', line 812 def name @name end |
#upper_bound ⇒ Object
Returns the value of attribute upper_bound.
815 816 817 |
# File 'lib/opl.rb', line 815 def upper_bound @upper_bound end |
#variable_coefficient_pairs ⇒ Object
Returns the value of attribute variable_coefficient_pairs.
816 817 818 |
# File 'lib/opl.rb', line 816 def variable_coefficient_pairs @variable_coefficient_pairs end |