Skip to main content

model.addGenConstrAbs PROBLEM

Answered

Comments

2 comments

  • Official comment
    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.
  • Jaromił Najman
    • Gurobi Staff

    Hi,

    The default lower bound for optimization variables is \(0\). I guess that the value of your \(\texttt{orig_var}\) can be negative, thus you should make it a free variable.

    orig_var = model.addVar(lb=-grb.GRB.INFINITY,vtype = grb.GRB.CONTINUOUS)

    Best regards, 
    Jaromił

    0

Post is closed for comments.