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

Model infeasible after using GRBfixmodel

回答済み

コメント

2件のコメント

  • 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

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