Class: OPL::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/opl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#constraintObject

Returns the value of attribute constraint.



840
841
842
# File 'lib/opl.rb', line 840

def constraint
  @constraint
end

#epsilonObject

Returns the value of attribute epsilon.



844
845
846
# File 'lib/opl.rb', line 844

def epsilon
  @epsilon
end

#lower_boundObject

Returns the value of attribute lower_bound.



841
842
843
# File 'lib/opl.rb', line 841

def lower_bound
  @lower_bound
end

#nameObject

Returns the value of attribute name.



839
840
841
# File 'lib/opl.rb', line 839

def name
  @name
end

#upper_boundObject

Returns the value of attribute upper_bound.



842
843
844
# File 'lib/opl.rb', line 842

def upper_bound
  @upper_bound
end

#variable_coefficient_pairsObject

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