Forum Discussion
FICO
5 years agoCommunity Manager
Changing objective function coefficient
Given the following overly simplified code snippet. XPRBprob bprob = bcl.newProb();
//..
XPRBexpr obj = new XPRBexpr(); //Define some objective
//..
bprob.setSense(XPRB.MAXIM);
bprob.setObj(obj);
/...
FICO
5 years agoCommunity Manager
Xpress does not automatically keep feasible MIP solutions as starting point for the next solve after a modification. The reason is that it is not always clear whether it helps performance or not (in some cases it is just better to start from scratch and don't bother with whatever a previous solve produced). So you have to transfer those solutions yourself.
About the second question: If you change the objective function then the solver has to start from scratch anyway because any previous presolve reduction may have been derived from the objective function. Any such reduction now is invalid. So changing the objective implies dropping the presolved model. Thus you don't need to bother with variables that were presolved out.
Related Content
Related Content
How to use chgmcoef or similar functions to change constraints coefficients with indexed dictionary
Hello Xpress experts! I would appreciate if you could help me figure out the following question. Thanks in advance! I have a dummy problem with both variables and constraints defined in dictionary s...3 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum1 unread comment1 unread4Views0likes1CommentHow 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,...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread17Views0likes4Comments
