|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A special ordered set of type 2.
A special ordered set of type 2 (SOS2) specifies an ordered set of variables. Only two of these variables may take a nonzero value in a feasible solution, and the two variables must be adjacent with respect to the order of the variables. The order of the variables in the set is determined by weighted values assigned to each variable in the set.
IloSOS2
objects are created with the method
IloMPModeler.SOS2()
.
IloMPModeler.addSOS2(ilog.concert.IloNumVar[], double[])
Method Summary | |
ilog.concert.IloNumVar[] |
getNumVars()
Returns the array of variables in the invoking SOS2
object. |
double[] |
getValues()
Returns the array of weight values in the invoking SOS2
object. |
Methods inherited from interface ilog.concert.IloAddable |
getName, setName |
Method Detail |
public ilog.concert.IloNumVar[] getNumVars() throws IloException
SOS2
object.
SOS2
object.
IloException
public double[] getValues() throws IloException
SOS2
object.
SOS2
object.
IloException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |