CPXXfreeprob and CPXfreeprob

The routine CPXXfreeprob/CPXfreeprob removes the specified CPLEX problem object from the CPLEX environment and frees the associated memory used internally by CPLEX.

int  CPXXfreeprob( CPXCENVptr env, CPXLPptr * lp_p )

int  CPXfreeprob( CPXCENVptr env, CPXLPptr * lp_p )

Description

The routine CPXXfreeprob/CPXfreeprob removes the specified CPLEX problem object from the CPLEX environment and frees the associated memory used internally by CPLEX. The routine is used when the user has no need for further access to the specified problem data.

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
lp_p
A pointer to a CPLEX problem object as returned by CPXXcreateprob/CPXcreateprob.

Return

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

Example


status = CPXfreeprob (env, &lp);

See also the example lpex1.c in the CPLEX User's Manual and in the standard distribution.