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

Handling small constraint violation warnings after adding constraints and re-optimizing

回答済み

コメント

3件のコメント

  • Riley Clement
    • Gurobi Staff

    Hi Ahmet,

    The parameters mentioned in Solver Parameters to Manage Numerical Issues may help?  In particular I would try (not all at once) Aggregate=0, NumericFocus, IntegralityFocus, ScaleFlag.

    You mentioned experimenting with feasibility-related tolerances - I'm guessing that you tried tightening FeasibiltyTol?

    If you drop a link to a MPS model file I will take a look and see if there is anything else to consider.

    - Riley

     

    0
  • Ahmet Emir Şener
    • First Comment
    • First Question

    Dear Riley,

    Thank you for your comment and suggestions.

    I scaled the added constraints with appropriate multipliers so that their violations are visible to the optimization model. Specifically, I ensured that the minimum scaled violation is at least 100 * FeasibilityTol.

    In my case, this scaling preserved the intended meaning of the constraints without introducing any issues.

    Best regards,
    Ahmet

    0
  • Riley Clement
    • Gurobi Staff

    Good to hear Ahmet, that is indeed the best approach.

    0

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