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