![]() |
If a variable is to be changed to binary, a call to CPXchgbds() should also be made to change the bounds to 0 and 1.
|
The routine returns a zero on success, and a nonzero if an error occurs.
int CPXchgctype (CPXCENVptr env, CPXLPptr lp, int cnt, const int *indices, const char *xctype); |
The pointer to the CPLEX environment as returned by the CPXopenCPLEX()
routine.
A pointer to a CPLEX problem object as returned by CPXcreateprob()
.
status = CPXchgctype (env, lp, cnt, indices, ctype); |