| Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXcopysos is used to copy Special Ordered Set
(SOS) information to a problem object of type CPXPROB_MILP,
CPXPROB_MIQP, or
CPXPROB_MIQCP.
CPX_TYPE_SOS1 | '1' | Type 1 |
CPX_TYPE_SOS2 | '2' | Type 2 |
Example
status = CPXcopysos (env,
lp,
numsos,
numsosnz,
sostype,
sospri,
sosbeg,
sosind,
soswt);
See Also:
| env | A pointer to the CPLEX environment as returned by |
| lp | A pointer to a CPLEX problem object as returned by |
| numsos | The number of SOS sets. If |
| numsosnz | The total number of members in all sets. |
| sostype | An array containing SOS type information for the sets. |
| sospri | An array containing priority values for each set. |
| soswt | Arrays describing the indices and weights for the sets. For every set, the indices and weights must be stored in sequential locations in |