Skip to main content
FRAMES NO FRAMES

IloAlwaysEqual

public IloConstraint IloAlwaysEqual(const IloEnv env, const IloCumulFunctionExpr f, IloInt start, IloInt end, IloInt v)
Definition file: ilconcert/ilosmodel.h
Creates a constraint that ensures a given cumul function value on an interval. This function has been deprecated in CP Optimizer 20.1.0.

This function has been deprecated in CP Optimizer 20.1.0. Instead, use the corresponding IloAlwaysIn function. This function returns a constraint that states that the value of cumul function expression f should be always equal to v between start and end. Value v must be in range 0..IloIntervalMax. You must add this constraint to a model and extract the model to an algorithm in order for it to be taken into account.

Note: This constraint cannot be used in a logical constraint.

For more information on cumul function expressions, see the concept Cumul functions in CP Optimizer.


IloAlwaysEqual

public IloConstraint IloAlwaysEqual(const IloEnv env, const IloCumulFunctionExpr f, const IloIntervalVar a, IloInt v)
Definition file: ilconcert/ilosmodel.h
Creates a constraint that ensures a given cumul function value on an interval. This function has been deprecated in CP Optimizer 20.1.0.

This function has been deprecated in CP Optimizer 20.1.0. Instead, use the corresponding IloAlwaysIn function. This function returns a constraint that states that whenever interval variable a is present, the value of cumul function expression f should be always equal to v between the start and the end of a. Value v must be in range 0..IloIntervalMax. You must add this constraint to a model and extract the model to an algorithm in order for it to be taken into account.

Note: This constraint cannot be used in a logical constraint.

For more information on cumul function expressions, see the concept Cumul functions in CP Optimizer.


IloAlwaysEqual

public IloConstraint IloAlwaysEqual(const IloEnv env, const IloStateFunction f, IloInt start, IloInt end, IloInt v, IloBool startAlign=IloFalse, IloBool endAlign=IloFalse)
Definition file: ilconcert/ilosmodel.h
Creates a constraint that ensures a given state on an interval.

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

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

Note: This constraint cannot be used in a logical constraint.

For more information on state functions, see the concept State functions in CP Optimizer.


IloAlwaysEqual

public IloConstraint IloAlwaysEqual(const IloEnv env, const IloStateFunction f, const IloIntervalVar a, IloInt v, IloBool startAlign=IloFalse, IloBool endAlign=IloFalse)
Definition file: ilconcert/ilosmodel.h
Creates a constraint that ensures a given state on an interval.

This function 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 equal to value v over this interval.

Generally speaking, the optional Boolean values startAlign and endAlign allow synchronization of the start and end of interval variable a with the intervals of the state function:

Note: This constraint cannot be used in a logical constraint.

For more information on state functions, see the concept State functions in CP Optimizer.