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

Enforce a solution to see which constraints broke?

回答済み

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff Gurobi Staff
    This post is more than three 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 why not try our AI Gurobot?.
  • Sonja Mars
    • Gurobi Staff Gurobi Staff

    I am not sure I understand: if the solution violates the constraints it is not feasible anymore, isn't it?

    However, you can fix the upper and lower bounds of your variables to the values of the solution and then use feasRelax() or computeIIS() to compute the infeasibilities on that model. Please also see here for more details.

    Sonja

    0

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