Originally posted by: SystemAdmin
[DanielJunglas said:]
Yes, there is:
CPXCLPptr presolved;
CPXpresolve(env, lp, ...);
CPXgetredlp(env, lp, &presolved);
CPXwriteprob(env, presolved, ...);
Beware of two things:
[list]
[li]If CPLEX solves the problem during presolve then CPXgetredlp() will return NULL[/li]
[li]The model returned by CPXgetredlp() must/cannot be modified. If you want to modify that problem then you first have to do a CPXcloneprob().[/li]
[/list]
#CPLEXOptimizers#DecisionOptimization