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

Lazy constraints and cuts in the same model callback

回答済み

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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.
  • Mario Ruthmair
    • Gurobi Staff

    Hi Lorenzo,

    The recommended way is to add all cuts that might cut off integer solutions via cbLazy(), even during a user cut callback (which is your option 2).
    This also ensures that more cuts are kept in the model and actually considered by the solver, while cuts added by cbCut() might be discarded if they do not meet the solver's conditions (numerics, density, etc.).

    Best regards,
    Mario

    0

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