Originally posted by: SystemAdmin
First of all, you should use '<=' and '>=' instead of '<'<'.
If you get "No solution exists" then solver.solve() did return false, correct?
This means probably means that your problem is infeasible. So either your constraints or your data is wrong. To assess that I would proceed as follows:
-
Before doing solver.solve() do solver.exportModel("model.sav");
-
Use the interactive optimizer to analyze the conflict by typing the following input to the interactive:
read model.sav
optimize
conflict
display conflict all
This will show you a set of constraints/bounds that render your model infeasible.
Alternatively, you can export the model to an LP file (solver.exportModel("model.lp")) and look at this file directly.
#CPLEXOptimizers#DecisionOptimization