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.



712
713
714
715
716
# File 'lib/opl.rb', line 712

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

Instance Attribute Details

#column_boundsObject

Returns the value of attribute column_bounds.



705
706
707
# File 'lib/opl.rb', line 705

def column_bounds
  @column_bounds
end

#constraintsObject

Returns the value of attribute constraints.



693
694
695
# File 'lib/opl.rb', line 693

def constraints
  @constraints
end

#dataObject

Returns the value of attribute data.



702
703
704
# File 'lib/opl.rb', line 702

def data
  @data
end

#data_hashObject

Returns the value of attribute data_hash.



703
704
705
# File 'lib/opl.rb', line 703

def data_hash
  @data_hash
end

#epsilonObject

Returns the value of attribute epsilon.



706
707
708
# File 'lib/opl.rb', line 706

def epsilon
  @epsilon
end

#matrixObject

Returns the value of attribute matrix.



699
700
701
# File 'lib/opl.rb', line 699

def matrix
  @matrix
end

#mip_messageObject

Returns the value of attribute mip_message.



701
702
703
# File 'lib/opl.rb', line 701

def mip_message
  @mip_message
end

#objectiveObject

Returns the value of attribute objective.



692
693
694
# File 'lib/opl.rb', line 692

def objective
  @objective
end

#original_constraintsObject

Returns the value of attribute original_constraints.



694
695
696
# File 'lib/opl.rb', line 694

def original_constraints
  @original_constraints
end

#rglpk_objectObject

Returns the value of attribute rglpk_object.



697
698
699
# File 'lib/opl.rb', line 697

def rglpk_object
  @rglpk_object
end

#rowsObject

Returns the value of attribute rows.



695
696
697
# File 'lib/opl.rb', line 695

def rows
  @rows
end

#simplex_messageObject

Returns the value of attribute simplex_message.



700
701
702
# File 'lib/opl.rb', line 700

def simplex_message
  @simplex_message
end

#solutionObject

Returns the value of attribute solution.



696
697
698
# File 'lib/opl.rb', line 696

def solution
  @solution
end

#solverObject

Returns the value of attribute solver.



698
699
700
# File 'lib/opl.rb', line 698

def solver
  @solver
end

#variable_typesObject

Returns the value of attribute variable_types.



704
705
706
# File 'lib/opl.rb', line 704

def variable_types
  @variable_types
end

Instance Method Details

#keysObject



708
709
710
# File 'lib/opl.rb', line 708

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