Forum Discussion
FICO
3 years agoCommunity Manager
Infeasible model after consecutive invocation
We have the following workflow implemented in Java with Xpress 9.2.2 8.14.5: 1. Build BCL MIP model 2. Fix subset of variables (xprbVar.fix(.)). This simplified model is referred to as model A 3...
FICO
3 years agoCommunity Manager
As per your instructions, I created the 3 exports (model1.lp, model2.lp, model3.lp). Model1.lp and model3.lp are indeed identical. Model2.lp indeed has a subset of variables fixed. I can solve each of these LPs through the interactive optimizer, and the results are as expected: Model1.lp and Model3.lp produce a feasible solution, Model2.lp is infeasible.
I am not sure I understood correctly: are you saying that model B is found infeasible only if it is solved right after model A in your application but when solved standalone then it is found feasible? In particular, if you solve the original model before even creating model B, is that found feasible?That is correct. In fact, if I disable steps 2, 3, 4 and 5 in the above workflow, and hence solve the original model with no variables fixed then I obtain a correct, feasible solution.
I played around with the PRESOLVEOPS parameters but was unable to find a combination of parameters that allowed me to solve model B correctly. Only setting PRESOLVE=0 allows me to solve model B (I did not attempt an exhaustive search over all 2^19 PRESOLVE parameter combinations..).
I also tried inserting the following lines right before invoking xprs.mipOptimize("p"):
xprsProb.writeProb(config.OUTPUT_DIRECTORY+"/"+solveInstanceName, "l");
xprsProb.readProb(config.OUTPUT_DIRECTORY+"/"+solveInstanceName, "v");This simply writes the problem to a file, and immediately reads the same file again. This solves the issue, i.e. model A is again infeasible, and model B produces a feasible solution. Also adding the following 2 lines right before invoking mipOptimize solves the problem:
xprsProb.saveAs(config.OUTPUT_DIRECTORY+"/"+instanceName);
xprsProb.restore(config.OUTPUT_DIRECTORY+"/"+instanceName);I've email the requested svf to you ([email protected])
Related Content
Related Content
Help with consecutive binarys
I'm trying to model a constraint that tells me that my binary variable (index in months) can't be 1 in more than 2 consecutive periods of time. Here is a picture of a smilar constraint. Thank you so ...8 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum1 unread comment1 unread0Views0likes1CommentQCQP model doomed infeasible in presolve, however it is not
Hi, I am trying to solve a QCQP model, which is doomed infeasible by the pre-solver. However, when solving with presolve deactivated it solves fine - just takes a very long time! Calling the IIS doe...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum12 unread comments12 unread0Views0likes12CommentsI'd like to increase the diagnostics to know the cause of an infeasibility.
Hi. I am trying to optimize the attached model. However, it is infeasible. When running the diagnostics, the displayed information is not useful. I would like to see the cause of the infeasibility, e...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread0Views0likes4Comments