Originally posted by: SystemAdmin
Hello Jamie,
Export the generated model in an LP format to go through the constraints. To do so, assuming that 'cplex' is the IloCplex object being used, add the following line just before the "cplex.solve();' statement:
cplex.exportModel("test.lp");
This human readable format of the model will allow you to look at the constraints (as well as objective function and variable bounds) as they have been generated by your data set. Given your knowledge of the model, going through it might be enough to see if certain constraints are not being generated as you intended them to.
If you would like to find the minimal conflict (set of constraint and/or bounds that cause the infeasibility), you can run it against CPLEX's conflict refiner using the interactive optimizer using the following commands:
CPLEX> read test.lp //read in the model
CPLEX> conf //to run the conflict refiner
CPLEX> disp conf all //to display the minimal conflict
You could also call the conflict refiner using the Java API. The following technote may be useful in this regards:
https://www-304.ibm.com/support/docview.wss?uid=swg21437987 Hope this helps
-Abhishek
#CPLEXOptimizers#DecisionOptimization