lib/solvers/glpk.rb in rulp-0.0.2 vs lib/solvers/glpk.rb in rulp-0.0.5

- old
+ new

@@ -1,11 +1,11 @@ class Glpk < Solver def solve(open_solution=false) - `#{executable} --lp #{@filename} --write #{@outfile}` + system("#{executable} --lp #{@filename} --write #{@outfile}") `open #{@outfile}` if open_solution end - def executable + def self.executable :glpsol end def store_results(variables) rows = IO.read(@outfile).split("\n") \ No newline at end of file