Skip to main content

Putting the value of the variables back to the equation to check, but the constraint does not meet.

Answered

Comments

1 comment

  • Marika Karbstein
    Gurobi Staff Gurobi Staff

    In the definition of your constraint Q[i,c,mov] is only defined for c=1,2. But later you access for c=3. So it looks like the constraint you checked with the solution was not added to the model. Could you please check that?
    If there are any issues it often helps to write the model with m.write("model.lp") and check the LP file.

    For unboundedness please check this article How do I resolve the error "Model is infeasible or unbounded"? – Gurobi Help Center

    To get a continuous relaxation of a MIP model you can use model.relax().

    0

Please sign in to leave a comment.