You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once solve is called Ctrl+C will not interrupt the program. I'm guessing it does something with a signal handler or mask and never resets it.
require'ruby-cbc'm=Cbc::Model.newx1,x2,x3=m.int_var_array(3,0..Cbc::INF)m.maximize(10*x1 + 6*x2 + 4*x3)m.enforce(x1 + x2 + x3 <= 100)m.to_problem.solve# comment this line out and Ctrl+C will workputs"Press Ctrl+C to quit"# Ctrl+C doesn't work here if we ran solve -- need to use Ctrl+\ to killsleep9999
The text was updated successfully, but these errors were encountered:
Once
solve
is called Ctrl+C will not interrupt the program. I'm guessing it does something with a signal handler or mask and never resets it.The text was updated successfully, but these errors were encountered: