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

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

回答済み

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Marika Karbstein
    • 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

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