The routine returns a zero on success, and a nonzero if an error occurs.
int CPXaddsos (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()
.
The number of sets to be added to existing SOS sets, if any.
The total number of members in all of the sets to be added to existing SOS sets, if any.
CPX_TYPE_SOS1 | `1' | Type 1 |
CPX_TYPE_SOS2 | `2' | Type 2 |
The length of this array must be at least numsos
.
status = CPXaddsos (env, lp, numsos, numsosnz, sostype, sospri, sosbeg, sosind, soswt); |