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.



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

#constraintObject

Returns the value of attribute constraint.



813
814
815
# File 'lib/opl.rb', line 813

def constraint
  @constraint
end

#epsilonObject

Returns the value of attribute epsilon.



817
818
819
# File 'lib/opl.rb', line 817

def epsilon
  @epsilon
end

#lower_boundObject

Returns the value of attribute lower_bound.



814
815
816
# File 'lib/opl.rb', line 814

def lower_bound
  @lower_bound
end

#nameObject

Returns the value of attribute name.



812
813
814
# File 'lib/opl.rb', line 812

def name
  @name
end

#upper_boundObject

Returns the value of attribute upper_bound.



815
816
817
# File 'lib/opl.rb', line 815

def upper_bound
  @upper_bound
end

#variable_coefficient_pairsObject

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