ilog.concert
Interface IloSOS1


public interface IloSOS1
extends IloConstraint

Special ordered set of type 1. A special ordered set of type 1 (SOS1) specifies an ordered set of variables, and only one of them may take a non-zero 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 method IloMPModeler.SOS1().

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

Method Summary
 IloNumVar[] getNumVars()
          Returns the array of variables in the invoking SOS1.
 double[] getValues()
          Returns the array of weight values in the invoking SOS1.
 
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.
Returns:
The array of variables in the invoking SOS1.

getValues

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