NO FRAMES

CPXgetredlp

public int CPXgetredlp(CPXCENVptr env, CPXCLPptr lp, CPXCLPptr * redlp_p)
Definition file: cplex.h
Note

This is an advanced routine. Advanced routines typically demand a thorough 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 CPXgetredlp returns a pointer for the presolved problem. It returns NULL if the problem is not presolved or if all the columns and rows are removed by presolve. Generally, the returned pointer may be used only in CPLEX Callable Library query routines, such as CPXsolution or CPXgetrows.

The presolved problem must not be modified. Any modifications must be done on the original problem. If CPX_PARAM_REDUCE is set appropriately, the modifications are automatically carried out on the presolved problem at the same time. Optimization and query routines can be used on the presolved problem.

Example

 status = CPXgetredlp (env, lp, &reducelp);
 

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.

redlp_p

A pointer to receive the problem object pointer that results when presolve has been applied to the LP problem object.

Returns:

The routine returns zero if successful and nonzero if an error occurs.