Skip to main content

Help to solve this problem

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three 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 why not try our AI Gurobot?.
  • Jaromił Najman
    • Gurobi Staff

    Dear Sebastian,

    I have executed your code for \(N=2\) and \(K=3\) and noticed that the variable \(pi_{1,3}\) appears in your objective only. Thus, Gurobi simply sets this variable to the needed value in order to fulfill the \(=1\) equality and sets every other variable to its lower bound trivially fulfilling all other equality constraints.

    I used the write function to investigate the model Gurobi is actually solving.

    Please double check the formulas to make sure that every variable participates in the balance equations.

    I hope this could help you in resolving the issue.

    Best regards,
    Jaromił

    0

Post is closed for comments.