few

Results 16 comments of few

I'm not sure if fiddling with the signal handling in a library is such a nice thing for the application. I was thinking about this: a) Merge this PR as...

I just tried the branch on Windows... and it does not work. The solver just keeps running. Once it finishes, "KeyboardInterrupt: Waiting for highs to finish..." is printed, which hangs,...

I might have found a way to make it work on Windows. It depends on the pywin32 package though. Add these import at the top of highspy.py and replace the...

I found a version that works on linux and windows with the branch as it was merged. Is there interest to have that as an example? I would wait for...

That sounds great. > > ```python > h = highspy.Highs() > h.readModel('30n20b8.mps') > h.HandleKeyboardInterrupt = True > > solutions = [] > h.cbMipImprovingSolution.subscribe(lambda e: solutions.append(e.data_out.mip_solution)) > > h.solve() > print(solutions)...

> For > > > import highspy > > h = highspy.Highs() > > h.readModel("does_not_exist.mps") > > h.run() > > My view is that, since `h.readModel` returns `HighsStatus.kError`, this should...