The routine returns a zero on success, and a nonzero if an error occurs.
int CPXcopysos (CPXCENVptr env, CPXLPptr lp, int numsos, int numsosnz, const char *sostype, const int *sospri, const int *sosbeg, const int *sosind, const double *soswt); |
The pointer to the CPLEX environment as returned by CPXopenCPLEX()
.
A pointer to a CPLEX problem object as returned by CPXcreateprob()
.
An array containing SOS type information for the sets. sostype[i]
specifies the SOS type of set i
:
CPX_TYPE_SOS1 | `1' | Type 1 |
CPX_TYPE_SOS2 | `2' | Type 2 |
The length of this array must be at least numsos
.
status = CPXcopysos (env, lp, numsos, numsosnz, sostype, sospri, sosbeg, sosind, soswt); |