Skip to main content

Model infeasible after using GRBfixmodel

Answered

Comments

2 comments

  • Marika Karbstein
    Gurobi Staff Gurobi Staff

    Hi Christian,

    You are right. The infeasibility of the fixed model comes from the violated constraint in the solution.
    The best thing to do is indeed to try to improve the coefficient range and to reduce the large rhs values.
    There is also this warning

    Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored

    you might want to check.

    Did you try different parameter settings, and in any case, the optimal solution shows a constraint violation?
    What happens if you tighten the feasibility tolerance FeasibilityTol to, e.g., 1e-8 or 1e-9? Is the model then reported as infeasible? Or do you get a solution with a smaller violation?
    If the solution with the violation is acceptable for you, you could run the fixed model with a relaxed FeasibilityTol.

    Cheers,
    Marika

    1
  • Christian Perau
    Gurobi-versary
    Curious
    Conversationalist

    Hi Marika,

     

    thanks for the hint to FeasibilityTol. That´s seems to do the trick. Still I will try to reduce the coefficient range. Thank you very much!

     

    Best regards,

    Christian

    0

Please sign in to leave a comment.