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

Find redundant constraint in MILP

回答済み

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • 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?.
  • Jaromił Najman
    • Gurobi Staff

    Hi Mohammadreza,

    If by getting redundant constraints you mean to get a set of constraints removed by Gurobi during the presolving step, then this is not possible.

    If however, you mean that you are interested in getting constraints which are redundant in the optimality sense, i.e., are not active at the optimal solution point, then you can use the Slack attribute to check whether a linear constraint is active at the solution point. Note that it is always recommended to work with a small tolerance, i.e., if the Slack of a constraint is < 1e-6 then the constraint is very likely actually active and the small offset is due to numerical accuracy.

    Best regards,
    Jaromił

    0

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