Changing weights for a multi-objective Problem.
AnsweredHello,
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 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
Please sign in to leave a comment.
Comments
2 comments