Skip to main content

Retrieving the linear expression of a constraint

Answered

Comments

1 comment

  • Riley Clement
    • Gurobi Staff Gurobi Staff

    Hi Zheren,

    If you know the constraint you can retrieve the corresponding linear expression for the left hand side by using Model.getRow which will return a gurobipy.LinExpr. 

    - Riley

    0

Please sign in to leave a comment.