メインコンテンツへスキップ

Changing weights for a multi-objective Problem.

回答済み

コメント

3件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • 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

投稿コメントは受け付けていません。