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

Analyzing the conditioning of a MIP

回答済み

コメント

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?.
  • Tobias Achterberg
    • Gurobi Staff Gurobi Staff

    The condition number "kappa" is a property of a square matrix. So, there is not a single "kappa" for your model, but any subset of the columns of cardinality equal to the number of rows yields one such square matrix and thus one particular "kappa". One choice of a subset of columns is an optimal basis for the LP. This is the "kappa" that Gurobi returns. You need to first call solve() in order to find an optimal basis, and then you can query its condition number. Both primal and dual simplex provide a basic solution to your model. The barrier algorithm only provides a basic solution if you use crossover to find it. Using crossover is the default setting.

    Your approach does something that is somewhat reasonable, but it doesn't provide the full picture. It is just sampling the set of basic solutions of the LP. Namely, it just tests for one particular basis matrix. Hence, if this has a large kappa value, then it is likely that you will have trouble with solving your model as a MIP. But on the other hand, if this kappa value is small, it does not say anything about the numerical properties of the MIP. It could be that there are other basis matrices with a very large kappa that the MIP solve would have to work with.

    0

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