メインコンテンツへスキップ

Checking Solution and adding Cuts

回答済み

コメント

3件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff 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 why not try our AI Gurobot?.
  • Eli Towle
    • Gurobi Staff Gurobi Staff

    Hi Markus,

    It sounds like your inequalities should be added using the MIPSOL callback. This callback is called whenever a new MIP incumbent solution is found, which includes those found via heuristics before the branch-and-bound process even begins. Constraints added in this manner are known as lazy constraints.

    If you additionally want to add a "user cut" at every node of the branch-and-bound tree using the node's relaxation solution, this can be done within the MIPNODE callback (I believe you are doing this already). Note that the cuts you are adding should be globally valid.

    Thanks!

    Eli

    0
  • Markus Gabl
    • Gurobi-versary
    • First Comment
    • First Question

    Thank you so much for your quick answer. I will try to implement it using the MIPSOL callback. 

    Have a nice day  :D 

    0

投稿コメントは受け付けていません。