This method returns a constraint that ensures that state function f is defined everywhere on the interval [start,end) and remains constant over this interval.

Namespace: ILOG.CP
Assembly: oplall (in oplall.dll)

Syntax

C#
public IConstraint AlwaysConstant(
	IStateFunction f,
	int start,
	int end
)

Parameters

f
Type: ILOG.Concert..::..IStateFunction
start
Type: System..::..Int32
end
Type: System..::..Int32

Remarks

Generally speaking, the optional Boolean values startAlign and endAlign allow synchronizing start and end with the intervals of the state function:

  • When startAlign is true, it means that start must be the start of an interval of the state function.
  • When endAlign is true, it means that end must be the end of an interval of the state function.

By default, startAlign and endAlign are false.

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.

See Also