An instance of this class represents an alternative constraint.
Namespace: ILOG.Concert
Assembly: oplall (in oplall.dll)
Syntax
| C# |
|---|
public interface IAlternative : IConstraint, IIntExpr, INumExpr, ICopyable, IAddable |
Remarks
An instance of IAlternative represents an alternative constraint. An alternative constraint between an interval variable a and a set of interval variables {b1,...,bn} models an exclusive alternative between {b1,...,bn}. If interval a is present, then exactly one of intervals {b1,...,bn} is present and a starts and ends together with this chosen one. Interval a is absent if and only if all intervals in {b1,...,bn} are absent. You must add this constraint to a model and extract the model to an algorithm in order for it to be taken into account. For more information on the alternative constraint, see the concept Constraints on groups of interval variables in CP Optimizer in the C++ interface reference manual.