Multiobjective with MLinExpr
AnsweredCurrently, multiobjectives only support having subsequent objective terms (after the primary term) as LinExpr().
Will MLinExpr() objective terms be supported?
Thanks!
0
-
Hi,
thank you for bringing this to our attention. I was able to reproduce this problem with the following code snippet:
import gurobipy as gp
model = gp.Model()
x = model.addMVar(5)
y = model.addVar()
# This works
model.setObjectiveN(y,0)
model.setObjectiveN(y,1)
# This does not work
model.setObjectiveN(x[0],0)
model.setObjectiveN(y,1)
# This does not work
model.setObjectiveN(y,0)
model.setObjectiveN(x[0],1We'll have a look at it internally. Was this also your experience?
Thanks
Richard
0 -
Hi Richard,
Yes, that is! Thank you and the team for looking into this. Looking forward to a fix.
0
Please sign in to leave a comment.
Comments
2 comments