SosBuilder::GetSize()
Get number of terms in SOS constraint.
Synopsis
int GetSize()
Return
number of terms.
SosBuilder::GetType()
Get type of SOS constraint.
Synopsis
int GetType()
Return
type of SOS constraint.
SosBuilder::GetVar()
Get variable from the i-th term in SOS constraint.
Synopsis
Var GetVar(int i)
Arguments
i
: index of the term.Return
variable of the i-th term in SOS constraint.
SosBuilder::GetVars()
Get variables of all terms in SOS constraint.
Synopsis
VarArray GetVars()
Return
variable array object.
SosBuilder::GetWeight()
Get weight from the i-th term in SOS constraint.
Synopsis
double GetWeight(int i)
Arguments
i
: index of the term.Return
weight of the i-th term in SOS constraint.
SosBuilder::GetWeights()
Get weights of all terms in SOS constraint.
Synopsis
double GetWeights()
Return
pointer to array of weights.
SosBuilder::Set()
Set variables and weights of SOS constraint.
Synopsis
void Set(
const VarArray &vars,
const double *pWeights,
int type)
Arguments
vars
: variable array object.
pWeights
: pointer to array of weights.
type
: type of SOS constraint.