Skip to main content

the dual objective computed using dual variables obtained from the primal LP model differs from the optimal primal obj

Answered

Comments

1 comment

  • Riley Clement
    Gurobi Staff Gurobi Staff

    Hi Wanzhe,

    The dual values look correct but the objective coefficients do not.

    >> import gurobipy as gp
    >> m = gp.read("model.lp")
    >> m.optimize()
    >> sum(d*p for d,p in zip(m.PI, m.RHS))
    90

    - Riley

    0

Please sign in to leave a comment.