Multiobjective with MLinExpr
回答済みCurrently, multiobjectives only support having subsequent objective terms (after the primary term) as LinExpr().
Will MLinExpr() objective terms be supported?
Thanks!
0
-
正式なコメント
This post is more than three 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 why not try our AI Gurobot?. -
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
投稿コメントは受け付けていません。
コメント
3件のコメント