Class: OPL::LinearProgram

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLinearProgram

Returns a new instance of LinearProgram.



621
622
623
624
625
# File 'lib/opl.rb', line 621

def initialize
	@rows = []
	@data = []
	@epsilon = $default_epsilon
end

Instance Attribute Details

#column_boundsObject

Returns the value of attribute column_bounds.



614
615
616
# File 'lib/opl.rb', line 614

def column_bounds
  @column_bounds
end

#constraintsObject

Returns the value of attribute constraints.



602
603
604
# File 'lib/opl.rb', line 602

def constraints
  @constraints
end

#dataObject

Returns the value of attribute data.



611
612
613
# File 'lib/opl.rb', line 611

def data
  @data
end

#data_hashObject

Returns the value of attribute data_hash.



612
613
614
# File 'lib/opl.rb', line 612

def data_hash
  @data_hash
end

#epsilonObject

Returns the value of attribute epsilon.



615
616
617
# File 'lib/opl.rb', line 615

def epsilon
  @epsilon
end

#formatted_constraintsObject

Returns the value of attribute formatted_constraints.



605
606
607
# File 'lib/opl.rb', line 605

def formatted_constraints
  @formatted_constraints
end

#matrixObject

Returns the value of attribute matrix.



608
609
610
# File 'lib/opl.rb', line 608

def matrix
  @matrix
end

#mip_messageObject

Returns the value of attribute mip_message.



610
611
612
# File 'lib/opl.rb', line 610

def mip_message
  @mip_message
end

#objectiveObject

Returns the value of attribute objective.



601
602
603
# File 'lib/opl.rb', line 601

def objective
  @objective
end

#rglpk_objectObject

Returns the value of attribute rglpk_object.



606
607
608
# File 'lib/opl.rb', line 606

def rglpk_object
  @rglpk_object
end

#rowsObject

Returns the value of attribute rows.



603
604
605
# File 'lib/opl.rb', line 603

def rows
  @rows
end

#simplex_messageObject

Returns the value of attribute simplex_message.



609
610
611
# File 'lib/opl.rb', line 609

def simplex_message
  @simplex_message
end

#solutionObject

Returns the value of attribute solution.



604
605
606
# File 'lib/opl.rb', line 604

def solution
  @solution
end

#solverObject

Returns the value of attribute solver.



607
608
609
# File 'lib/opl.rb', line 607

def solver
  @solver
end

#variable_typesObject

Returns the value of attribute variable_types.



613
614
615
# File 'lib/opl.rb', line 613

def variable_types
  @variable_types
end

Instance Method Details

#keysObject



617
618
619
# File 'lib/opl.rb', line 617

def keys
	[:objective, :constraints, :rows, :solution, :formatted_constraints, :rglpk_object, :solver, :matrix, :simplex_message, :mip_message, :data]
end