Forum Discussion
FICO
1 year agoCommunity Manager
How to apply termination conditions to each objective function in multi-objective model
Hello everyone, I am implementing a multi-objective model in Python, and I would like to set a time limit for each objective function. It would be best if I could set different time limits for each,...
FICO
1 year agoCommunity Manager
Dear Chris,
I tried implementing it based on the code you provided, and it seems to be working fine for now.
Thank you for your help.
In future releases, it would be nice to have a feature that allows you to set different termination conditions for each objective in a multi-objective model.
In Gurobi, this feature can be easily applied as follows.
self.model.setObjectiveN(stock_out_min_urgent, 0, 15, 1.0, 0.0, 0.0, ‘StockOutMinUrgent’)
self.model.setObjectiveN(stock_out_min_OEM, 1, 14, 1.0, 0.0, 0.0, ‘StockOutMinOEM’)
env0 = self.model.getMultiobjEnv(0)
env1 = self.model.getMultiobjEnv(1)
env0.setParam(‘TimeLimit’, 30)
env0.setParam(‘MIPGap’, 0.05)
env1.setParam(‘TimeLimit’, 30)
Thank you.
Best regards,
Kiseop
Related Content
Related Content
Multi-objective optimization in Python
Hello, I'd like to define a multi-objective optimization problem in Xpress Python. It seems like adding multiple lines of p.setObjective is not the right way to do. Could you describe what's the pre...6 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread0Views0likes2CommentsHow to detect between termination by timeout or tolerance
The documentation doesn't clearly explain XPRS_UNF. I believe it means the optimisation finished either due to a XPRS_MAXTIME being reached or a tolerance being met. Without comparing time and tolera...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum6 unread comments6 unread0Views0likes6Comments