Skip to main content

model.addGenConstrAbs PROBLEM

Answered

Comments

1 comment

  • 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

Please sign in to leave a comment.