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

Practical way to change MIPFocus during Execution

回答済み

コメント

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.
  • Riley Clement
    • Gurobi Staff

    Hi Cedric,

    You will be able to change the MIPFocus parameter from a callback by following our example here:
    How do I change parameters in a callback?

    I tested the approach and it resumes the optimization from where it was terminated (at 4 seconds) and the log looks like this

    ...

    Set parameter MIPFocus to value 1
    Gurobi Optimizer version 10.0.0 build v10.0.0rc2 (mac64[x86])

    ...

    H  787   744                    1.725015e+09 8.0001e+08  53.6%   7.8    2s
    H  928   813                    1.700015e+09 8.0001e+08  52.9%   7.7    3s
    H 1055   907                    1.700014e+09 8.0001e+08  52.9%   7.6    3s

    ...

    Solve interrupted

    ...

    Set parameter MIPFocus to value 3

    ...

    Continuing optimization...

    H 2813  2201                    1.600014e+09 8.0001e+08  50.0%  10.5    4s
      3090  2327 9.5001e+08   29   49 1.6000e+09 8.0001e+08  50.0%  10.7    5s
    H 3785  2898                    1.600014e+09 8.0001e+08  50.0%  11.1    5s

    ...

     

    - Riley

     

    0

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