Class: MIPPeR::Solution
- Inherits:
-
Object
- Object
- MIPPeR::Solution
- Defined in:
- lib/mipper/solution.rb
Instance Attribute Summary collapse
-
#objective_value ⇒ Object
Returns the value of attribute objective_value.
-
#status ⇒ Object
Returns the value of attribute status.
-
#variable_values ⇒ Object
Returns the value of attribute variable_values.
Instance Method Summary collapse
-
#initialize(status, objective_value, variable_values) ⇒ Solution
constructor
A new instance of Solution.
Constructor Details
#initialize(status, objective_value, variable_values) ⇒ Solution
Returns a new instance of Solution.
5 6 7 8 9 |
# File 'lib/mipper/solution.rb', line 5 def initialize(status, objective_value, variable_values) @status = status @objective_value = objective_value @variable_values = variable_values end |
Instance Attribute Details
#objective_value ⇒ Object
Returns the value of attribute objective_value.
3 4 5 |
# File 'lib/mipper/solution.rb', line 3 def objective_value @objective_value end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/mipper/solution.rb', line 3 def status @status end |
#variable_values ⇒ Object
Returns the value of attribute variable_values.
3 4 5 |
# File 'lib/mipper/solution.rb', line 3 def variable_values @variable_values end |