SosBuilder.SosBuilder()

Constructor of sosbuilder object.

Synopsis

SosBuilder()

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 idx-th term in SOS constraint.

Synopsis

Var getVar(int idx)

Arguments

idx: index of the term.

Return

variable of the idx-th term in SOS constraint.

SosBuilder.GetVars()

Get all variables in a SOS constraint.

Synopsis

VarArray GetVars()

Return

variables in a SOS constraint.

SosBuilder.getWeight()

Get weight from the idx-th term in SOS constraint.

Synopsis

double getWeight(int idx)

Arguments

idx: index of the term.

Return

weight of the idx-th term in SOS constraint.

SosBuilder.getWeights()

Get weights of all terms in SOS constraint.

Synopsis

double[] getWeights()

Return

array of weights.

SosBuilder.set()

Set variables and weights of SOS constraint.

Synopsis

void set(

VarArray vars,

double[] weights,

int type)

Arguments

vars: variable array object.

weights: array of weights.

type: type of SOS constraint.