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.
-
#formatted_constraints ⇒ Object
Returns the value of attribute formatted_constraints.
-
#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.
-
#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.
621 622 623 624 625 |
# File 'lib/opl.rb', line 621 def initialize @rows = [] @data = [] @epsilon = $default_epsilon end |
Instance Attribute Details
#column_bounds ⇒ Object
Returns the value of attribute column_bounds.
614 615 616 |
# File 'lib/opl.rb', line 614 def column_bounds @column_bounds end |
#constraints ⇒ Object
Returns the value of attribute constraints.
602 603 604 |
# File 'lib/opl.rb', line 602 def constraints @constraints end |
#data ⇒ Object
Returns the value of attribute data.
611 612 613 |
# File 'lib/opl.rb', line 611 def data @data end |
#data_hash ⇒ Object
Returns the value of attribute data_hash.
612 613 614 |
# File 'lib/opl.rb', line 612 def data_hash @data_hash end |
#epsilon ⇒ Object
Returns the value of attribute epsilon.
615 616 617 |
# File 'lib/opl.rb', line 615 def epsilon @epsilon end |
#formatted_constraints ⇒ Object
Returns the value of attribute formatted_constraints.
605 606 607 |
# File 'lib/opl.rb', line 605 def formatted_constraints @formatted_constraints end |
#matrix ⇒ Object
Returns the value of attribute matrix.
608 609 610 |
# File 'lib/opl.rb', line 608 def matrix @matrix end |
#mip_message ⇒ Object
Returns the value of attribute mip_message.
610 611 612 |
# File 'lib/opl.rb', line 610 def @mip_message end |
#objective ⇒ Object
Returns the value of attribute objective.
601 602 603 |
# File 'lib/opl.rb', line 601 def objective @objective end |
#rglpk_object ⇒ Object
Returns the value of attribute rglpk_object.
606 607 608 |
# File 'lib/opl.rb', line 606 def rglpk_object @rglpk_object end |
#rows ⇒ Object
Returns the value of attribute rows.
603 604 605 |
# File 'lib/opl.rb', line 603 def rows @rows end |
#simplex_message ⇒ Object
Returns the value of attribute simplex_message.
609 610 611 |
# File 'lib/opl.rb', line 609 def @simplex_message end |
#solution ⇒ Object
Returns the value of attribute solution.
604 605 606 |
# File 'lib/opl.rb', line 604 def solution @solution end |
#solver ⇒ Object
Returns the value of attribute solver.
607 608 609 |
# File 'lib/opl.rb', line 607 def solver @solver end |
#variable_types ⇒ Object
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
#keys ⇒ Object
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 |