CPXcloneprob


Description

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.

Return Value

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.

Synopsis

  CPXLPptr CPXcloneprob (CPXCENVptr env,
                         CPXCLPptr lp,
                         int *status_p);

Arguments

CPXCENVptr env

The pointer to the CPLEX environment as returned by CPXopenCPLEX().

CPXCLPptr lp

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

int *status_p

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

Example

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


Previous Page: CPXchgsense Return to Top Next Page: CPXcloseCPLEX