Skip to main content

Changing weights for a multi-objective Problem.

Answered

Comments

2 comments

  • Mario Klostermeier
    • Gurobi-versary
    • First Question
    • First Comment

    This is my solution so far. Is there a better way ?

    for w_index in range(model.NumObj):
    model.Params.ObjNumber = w_index
    model.update()
    model.ObjNWeight = weights[w_index]
    model.update()
    0
  • Mario Ruthmair
    • Gurobi Staff

    Hi Mario,

    You do not necessarily need the calls to update(), but apart from that this is the way to go.

    Best regards,
    Mario

    0

Please sign in to leave a comment.