Skip to main content

Access starting solution variables

Answered

Comments

1 comment

  • Greg Glockner
    Gurobi Staff Gurobi Staff

    Try something like the following:

    m.optimize()
    for v in m.getVars():
    if v.Start != GRB.UNDEFINED:
    print('%s start %f, optimized %f' % (v.VarName, v.Start, v.X))
    0

Please sign in to leave a comment.