class RAMS::Solution
A Solution
contains the output running a model through a solver:
* Solution status * Objective value * Primal variable values * Dual prices
Attributes
dual[R]
objective[R]
primal[R]
status[R]
Public Class Methods
new(status, objective, primal, dual)
click to toggle source
# File lib/rams/solution.rb, line 12 def initialize(status, objective, primal, dual) @status = status @objective = objective @primal = primal @dual = dual end
Public Instance Methods
[](variable)
click to toggle source
# File lib/rams/solution.rb, line 19 def [](variable) primal[variable] end