Changing weights for a multi-objective Problem.
回答済みHello,
I am currently working on the weight sum method and would like to solve the same model with different weights. For this I would like to know how I can best change the weights of the different objectives.
0
-
正式なコメント
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. -
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 -
Hi Mario,
You do not necessarily need the calls to update(), but apart from that this is the way to go.
Best regards,
Mario0
投稿コメントは受け付けていません。
コメント
3件のコメント