Class: OPL::LinearProgram
- Inherits:
-
Object
- Object
- OPL::LinearProgram
- Defined in:
- lib/opl.rb
Instance Attribute Summary collapse
-
#column_bounds ⇒ Object
Returns the value of attribute column_bounds.
-
#constraints ⇒ Object
Returns the value of attribute constraints.
-
#data ⇒ Object
Returns the value of attribute data.
-
#data_hash ⇒ Object
Returns the value of attribute data_hash.
-
#epsilon ⇒ Object
Returns the value of attribute epsilon.
-
#matrix ⇒ Object
Returns the value of attribute matrix.
-
#mip_message ⇒ Object
Returns the value of attribute mip_message.
-
#objective ⇒ Object
Returns the value of attribute objective.
-
#original_constraints ⇒ Object
Returns the value of attribute original_constraints.
-
#rglpk_object ⇒ Object
Returns the value of attribute rglpk_object.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#simplex_message ⇒ Object
Returns the value of attribute simplex_message.
-
#solution ⇒ Object
Returns the value of attribute solution.
-
#solver ⇒ Object
Returns the value of attribute solver.
-
#variable_types ⇒ Object
Returns the value of attribute variable_types.
Instance Method Summary collapse
-
#initialize ⇒ LinearProgram
constructor
A new instance of LinearProgram.
- #keys ⇒ Object
Constructor Details
#initialize ⇒ LinearProgram
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_bounds ⇒ Object
Returns the value of attribute column_bounds.
705 706 707 |
# File 'lib/opl.rb', line 705 def column_bounds @column_bounds end |
#constraints ⇒ Object
Returns the value of attribute constraints.
693 694 695 |
# File 'lib/opl.rb', line 693 def constraints @constraints end |
#data ⇒ Object
Returns the value of attribute data.
702 703 704 |
# File 'lib/opl.rb', line 702 def data @data end |
#data_hash ⇒ Object
Returns the value of attribute data_hash.
703 704 705 |
# File 'lib/opl.rb', line 703 def data_hash @data_hash end |
#epsilon ⇒ Object
Returns the value of attribute epsilon.
706 707 708 |
# File 'lib/opl.rb', line 706 def epsilon @epsilon end |
#matrix ⇒ Object
Returns the value of attribute matrix.
699 700 701 |
# File 'lib/opl.rb', line 699 def matrix @matrix end |
#mip_message ⇒ Object
Returns the value of attribute mip_message.
701 702 703 |
# File 'lib/opl.rb', line 701 def end |
#objective ⇒ Object
Returns the value of attribute objective.
692 693 694 |
# File 'lib/opl.rb', line 692 def objective @objective end |
#original_constraints ⇒ Object
Returns the value of attribute original_constraints.
694 695 696 |
# File 'lib/opl.rb', line 694 def original_constraints @original_constraints end |
#rglpk_object ⇒ Object
Returns the value of attribute rglpk_object.
697 698 699 |
# File 'lib/opl.rb', line 697 def rglpk_object @rglpk_object end |
#rows ⇒ Object
Returns the value of attribute rows.
695 696 697 |
# File 'lib/opl.rb', line 695 def rows @rows end |
#simplex_message ⇒ Object
Returns the value of attribute simplex_message.
700 701 702 |
# File 'lib/opl.rb', line 700 def end |
#solution ⇒ Object
Returns the value of attribute solution.
696 697 698 |
# File 'lib/opl.rb', line 696 def solution @solution end |
#solver ⇒ Object
Returns the value of attribute solver.
698 699 700 |
# File 'lib/opl.rb', line 698 def solver @solver end |
#variable_types ⇒ Object
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
#keys ⇒ Object
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 |