Originally posted by: SystemAdmin
Sorry, there is no way of getting an OPL model of the presolved problem.
When OPL invokes CPLEX, it constructs a flat model (i.e., unrolls the forall statements and so on). This flat CPLEX model is then subject to presolve. To get back a useful OPL model from the presolved problem would mean that you have to recover the structure and turn the flat set of constraints back to nested forall statements and the like. This is not implemented, and in some cases I doubt that this would be possible.
Of course, it would be possible to just get a flat model in OPL (without any forall or other advanced language constructs), but this would not be very useful. Looking at the LP file yields basically the same.
Tobias
#CPLEXOptimizers#DecisionOptimization