Skip to main content

Replacing term in optimization leads to wrong results?

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

    Hi Leo,

    The default lower bound for variables is 0. Could you try introducing the variables \(\texttt{p_bess}\) as

    p_bess = m.addVars(range(n_timesteps), lb=-GRB.INFINITY, vtype = GRB.CONTINUOUS, name = "p_bess")

    Best regards,
    Jaromił

    0

Post is closed for comments.