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

if the model is feasible then terminate the solver

回答済み

コメント

2件のコメント

  • Jaromił Najman
    • Gurobi Staff

    Hi Langxun,

    You don't need a callback to make Gurobi stop as soon as a first feasible solution has been found. You can instead set the SolutionLimit parameter to 1. This will make Gurobi terminate as soon as a feasible solution has been found.

    Best regards, 
    Jaromił

    1
  • Langxun Zhu
    • Gurobi-versary
    • First Comment
    • First Question

    Thanks a lot!

    0

サインインしてコメントを残してください。