Skip to main content

Need for Infeasible Solution

Answered

Comments

3 comments

  • Daniel Espinoza

    Hi Michael,

    It's hard to say what is going wrong without a log or any more information, however, the usual steps to check what is going on is to look at the model in LP format, and check if the returned solution is indeed feasible (within tolerances). By default, primal and dual feasibility tolerances are 1e-6, while the integrality tolerances is 1e-5. For a detailed explanation of tolerances and their meaning you might want to take a look at the numerical guide:

    https://www.gurobi.com/documentation/8.1/refman/numerics_gurobi_guidelines.html

    It can be that your model is missing some constraints... so I would definitely check the resulting LP file for a small instance.

    Best regards, Daniel

     

    0
  • Michael Bamiloshin
    Gurobi-versary
    First Comment
    First Question

    Hi Daniel,

    Thanks so much for your response.

    You were right. Checking the LP file showed me what was wrong (some of my constraints were not properly written).

    I've fixed it and I now get the desired result.

    Thanks again,

    Michael

    0
  • Daniel Espinoza

    Glad to hear that!

    Daniel

    0

Please sign in to leave a comment.