NO FRAMES

CPXfreepresolve

int CPXPUBLIC CPXfreepresolve(CPXCENVptr env, CPXLPptr lp)
Definition file: cplex.h
Include files: cplex.h
Note

This is an advanced routine. Advanced routines typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other Callable Library routines instead.

The routine CPXfreepresolve frees the presolved problem from the LP problem object. Under the default setting of CPX_PARAM_REDUCE, the presolved problem is freed when an optimal solution is found. It is not freed when CPX_PARAM_REDUCE is set to CPX_PREREDUCE_PRIMALONLY (1) or CPX_PREREDUCE_DUALONLY (2), so the routine CPXfreepresolve can be used to free it manually.

Example

 status = CPXfreepresolve (env, lp);
 

Parameters:

env

A pointer to the CPLEX environment, as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX LP problem object, as returned by CPXcreateprob.

Returns:

The routine returns zero on success and nonzero if an error occurs.