ilog.concert
Interface IloSOS1

All Superinterfaces:
IloAddable, IloConstraint, IloIntExpr, IloNumExpr

public interface IloSOS1
extends IloConstraint

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().

See Also:
IloMPModeler.addSOS1(ilog.concert.IloNumVar[], double[])

Method Summary
 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

getNumVars

public IloNumVar[] getNumVars()
                       throws IloException
Returns the array of variables in the invoking SOS1 object.

Returns:
The array of variables in the invoking SOS1 object.
Throws:
IloException

getValues

public double[] getValues()
                   throws IloException
Returns the array of weight values in the invoking SOS1 object.

Returns:
The array of weight values in the invoking SOS1 object.
Throws:
IloException