Skip to main content

Adding user cuts derived from optimal simplex tableau




  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Hi Satender,

    It is currently not possible to get the information you need from within a callback. The only information available in any callback is listed in the Callback documentation.

    I see two possible solutions for your issue.

    If you only want to show the usefulness of your cuts, you could implement a simple B&B algorithm yourself where you call Gurobi in each node to solve an LP. Then, after solving a node LP to optimality, you can extract all information needed via the respective attributes. Note that this approach would lack all MIP technology implemented in Gurobi but would probably still be enough to show the validity of your cuts.

    Alternatively, you could use an open-source solver such as SCIP where you can adjust the code if needed and extract all the information you require. Since SCIP implements most of state-of-the-art MIP technology, this may be the better way to go to implement and test your cuts.

    Best regards, 

  • Satender .
    First Question
    First Comment

    Thank you Jaromil for your prompt response. I will try to use other solvers.



Please sign in to leave a comment.