Skip to main content

BestBdStop for feasibility problems

Answered

Comments

3 comments

  • Simranjit Kaur
    • Gurobi Staff Gurobi Staff

    Hi Timothy,

    You can query the model attribute SolCount at the end of the optimization run to check if a feasible solution was found. If model.SolCount >0, you can query the variable attribute X to find its value in the best solution found.

    For performance, you might want to experiment with the NoRelHeurTime and Heuristics parameters. 

    Best regards,
    Simran

    0
  • Timothy Baeckelant
    • Gurobi-versary
    • First Comment
    • First Question

    Thank's a lot !

    Now I have one more question. Does this also works if the model in supposed to be infeasible ? Which parameters could improve the solving time of an infeasible model ?

    0
  • Simranjit Kaur
    • Gurobi Staff Gurobi Staff

    Hi Timothy,

    You can check the status attribute of the model at the end of the optimize call to check if the model is infeasible.

    Which parameters could improve the solving time of an infeasible model ?

    Do you mean the running time of the computeIIS method that finds the smallest subset of constraints and variables that make the model infeasible? For that, please take a look at the parameters and attributes: IISMethod, IISConstrForce, IISLBForce, and IISUBForce.

    - Simran

    0

Please sign in to leave a comment.