NO FRAMES

CPXcloneprob

CPXLPptr CPXPUBLIC CPXcloneprob(CPXCENVptr env, CPXCLPptr lp, int * status_p)
Definition file: cplex.h
Include files: cplex.h

The routine CPXcloneprob can be used to create a new CPLEX problem object and copy all the problem data from an existing problem object to it. Solution and starting information is not copied.

Example

 copy = CPXcloneprob (env, lp, &status);
 

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object of which a copy is to be created.

status_p

A pointer to an integer used to return any error code produced by this routine.

Example

 copy = CPXcloneprob (env, lp, &status);
 

Returns:

If successful, CPXcloneprob returns a pointer that can be passed to other CPLEX routines to identify the problem object that is created. If not successful, a NULL pointer (NULL) is returned, and an error status is returned in the variable *status_p. If the routine is successful, *status_p is zero.