Skip to main content

The code runs for a particularly long time

Answered

Comments

1 comment

  • Mario Ruthmair
    • Gurobi Staff Gurobi Staff

    Hi Yali,

    The violations you obtain (4e-9) are very low. If those violations are still too large for your application, then you need to scale the ranges of your coefficients significantly. We usually recommend setting optimality and feasibility tolerances smaller than the smallest coefficients, but this is not possible in your case since 1e-9 is already the lowest tolerance value. Maybe you can find more hints in our guidelines for numerical issues.

    It is not surprising that solving the feasibility relaxation leads to values of 0. The feasibility relaxation minimizes the violations in the model and 0 means that there exists a feasible solution subject to tolerances. Provided that your violations are in the range of 4e-9, this outcome is expected.

    There are several improvements for your type of model in version 11 which will be released in about 1 month. Please try it out!

    Best regards,
    Mario

    0

Please sign in to leave a comment.