This method returns a constraint that ensures that whenever
interval variable a is present state function
f is defined everywhere between the start and the end
of interval variable a and remains constant over this
interval.
Namespace: ILOG.CP
Assembly: oplall (in oplall.dll)
Syntax
| C# |
|---|
public IConstraint AlwaysConstant( IStateFunction f, IIntervalVar a, bool startAlign, bool endAlign ) |
Parameters
- startAlign
- Type: System..::..Boolean
- endAlign
- Type: System..::..Boolean
Remarks
Generally speaking, the optional Boolean values startAlign and endAlign allow synchronizing the start and end of interval variable a with the intervals of the state function:
- When startAlign is true, it means that whenever interval variable a is present, the start of a must be the start of an interval of the state function.
- When endAlign is true, it means that whenever interval variable a is present, the end of a must be the end of an interval of the state function.
For more information on state functions, see the Concepts section of the C++ API Reference Manual.
Note: This constraint cannot be used in a logical constraint.