Purpose
Allows
sets to be added to the problem after passing it to the Optimizer using the input routines.
Synopsis
int XPRS_CC XPRSaddsets(XPRSprob prob, int newsets, int newnz, char qrtype[], int msstart[], int mclind[], double dref[]);
Arguments
prob
|
The current problem.
|
newsetsx
|
Number of new sets.
|
newnz
|
Number of new nonzeros in the added sets.
|
qrtype
|
Character array of length newsets containing the set types:
1
|
indicates a SOS1;
|
2
|
indicates a SOS2;
|
|
msstart
|
Integer array of length newsets+1 containing the offsets in the mclind and dref arrays of the start of the elements for each set.
|
mclind
|
Integer array of length newnz containing the (contiguous) column indices for
the elements in each set.
|
dref
|
Double array of length newnz containing the
(contiguous) reference values.
|
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.