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

Can MIPSOL happens in the PRESOLVE?

回答済み

コメント

3件のコメント

  • Riley Clement
    • Gurobi Staff

    Hi Haonan,

    Yes, feasible solutions can be found during presolve as we have some simple heuristics which run in parallel threads during presolve.

    - Riley

    0
  • haonan zhong
    • First Question
    • First Comment

    Hi Riley, 

    Thanks for your response! I just want to mention that I'm implementing this code in a lazy-fashion using lazy constraints. I'm not giving the model the lazy constraints that are removed before calling the solver. How does the solver find a feasible solution and verifies feasibility in PRESOLVE without having the lazy constraints?

    0
  • Riley Clement
    • Gurobi Staff

    Hi Haonan,

    When Gurobi finds a solution it will call your callback method using a “MIPSOL” argument for the where parameter, which gives you a chance to cut the solution off with a lazy constraint.  It doesn't matter when the solution is found, the callback is activated regardless.

    - Riley

    0

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