I asked a similar question approx. 3 weeks ago but did not get a response, so here is my second attempt. I have implemented a callback in C++ that adds user-defined cuts to the MIP solver (I'm using version 9.0.2). The callback also prints to the standard output (cout) everytime a cut is added, and this was done for debugging purposes. However, as shown below, it appears that the cut is not applied immediately, as the most significant digit of the best lower bound should theoretically jump to 4 after the cut is added, but it only goes to 4 more than two minutes later. According to the following thread:
Gurobi should apply the cut immediately if the solver is run on a single thread, and my implementation is using a single thread. So I am wondering why my user-defined cut is not applied immediately, and if there is a way to ensure that it is? Thank you.
Please sign in to leave a comment.