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



848
849
850
851
852
853
854
# File 'lib/opl.rb', line 848

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.



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

def constraint
  @constraint
end

#epsilonObject

Returns the value of attribute epsilon.



846
847
848
# File 'lib/opl.rb', line 846

def epsilon
  @epsilon
end

#lower_boundObject

Returns the value of attribute lower_bound.



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

def lower_bound
  @lower_bound
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#upper_boundObject

Returns the value of attribute upper_bound.



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

def upper_bound
  @upper_bound
end

#variable_coefficient_pairsObject

Returns the value of attribute variable_coefficient_pairs.



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

def variable_coefficient_pairs
  @variable_coefficient_pairs
end