Skip to main content

Callback for Initial solution's incumbency

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • David Torres Sanchez
    • Gurobi Staff

    Hi Evren,

    I don't think there is a nice way to do this.
    You can however check the message in the callback when you are in \(\texttt{where = GRB.Callback.MESSAGE}\) for the text you want and call \(\texttt{Abort()}\) if appropriate.

    if (where == GRB.Callback.MESSAGE) {
    // Message callback
    string msg = GetStringInfo(GRB.Callback.MSG_STRING);
    // Find required pattern in msg and terminate if approapriate
    }

    Please see the callback_cs.cs example.

    Cheers, 
    David

    0

Post is closed for comments.