-
Hi everyone, I'm currently working on integrating some additional features related to HiGHS into our software, SMS++, and I had a question regarding the available callback mechanisms in HiGHS. I've implemented our own callback system using the features already provided, and I'm wondering if there is currently a way to terminate the solver from within a callback. Specifically, let’s say the callback is triggered by Is there a way to signal the solver to stop execution at that point, directly from within the callback? Thanks so much for your time and support! Best regards, P.S. I'm also very interested in topic #1837 and am looking forward to any updates! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Interruption is possible, but only with the three "Interrupt" callbacks (because there's currently no "bailout" mechanism from the points where the other callbacks are called).
In your case, when the MIP interrupt callback is called, you'll have the following information in
and if you want to interrupt, then set Let me know if you've got any further queries |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
Interruption is possible, but only with the three "Interrupt" callbacks (because there's currently no "bailout" mechanism from the points where the other callbacks are called).
kCallbackSimplexInterrupt
kCallbackIpmInterrupt
kCallbackMipInterrupt
In your case, when the MIP interrupt callback is called, you'll have the following information in
data_out
and if you want to interrupt, then set
data_in.user_interrupt
to a nonzero valueLet me know if you've got any further queries