Skip to content

Commit

Permalink
Fix: ortools version output
Browse files Browse the repository at this point in the history
  • Loading branch information
senhalil committed Jun 24, 2020
1 parent 72edb2f commit 059a4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrappers/ortools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ def run_ortools(problem, vrp, services, points, matrix_indices, thread_proc = ni
s && (cost = Float(s[1]))
t = /Time : ([0-9.eE+]+)/.match(line)
t && (time = t[1].to_f)
log line.strip, level: (/Final Iteration :/.match(line) || /First solution strategy :/.match(line) || /Using initial solution provided./.match(line) || /OR-Tools v[0-9]+\.[0-9]+\.[0-9]+\n/.match(line)) ? :info : (r || s || t) ? :debug : :error
log line.strip, level: (/Final Iteration :/.match(line) || /First solution strategy :/.match(line) || /Using initial solution provided./.match(line) || /OR-Tools v[0-9]+\.[0-9]+\n/.match(line)) ? :info : (r || s || t) ? :debug : :error
out += line

next unless r && t # if there is no iteration and time then there is nothing to do
Expand Down

0 comments on commit 059a4e2

Please sign in to comment.