NO FRAMES

CPXcopyprotected

int CPXPUBLIC CPXcopyprotected(CPXCENVptr env, CPXLPptr lp, int cnt, const int * indices)
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 CPXcopyprotected is used to specify a set of variables that should not be substituted out of the problem. If presolve can fix a variable to a value, it is removed, even if it is specified in the protected list.

Example

 status = CPXcopyprotected (env, lp, cnt, indices);
 

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.

cnt

The number of variables to be protected.

indices

An array of length cnt containing the column indices of variables to be protected from being substituted out.

Returns:

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