Skip to main content
FRAMES NO FRAMES

IloEndAtStart

public IloConstraint IloEndAtStart(const IloEnv env, const IloIntervalVar a, const IloIntervalVar b, IloInt z=0)
Definition file: ilconcert/ilosmodel.h
Returns a precedence constraint between two intervals.

This function returns a constraint that states that whenever both interval variables a and b are present, the distance start(b)-end(a) between the end of interval a and the start of interval b must be equal to z. 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 precedences between interval variables, see the concept Precedence constraints.


IloEndAtStart

public IloConstraint IloEndAtStart(const IloEnv env, const IloIntervalVar a, const IloIntervalVar b, const IloIntExprArg z)
Definition file: ilconcert/ilosmodel.h
Returns a precedence constraint between two intervals.

This function returns a constraint that states that whenever both interval variables a and b are present, the distance start(b)-end(a) between the end of interval a and the start of interval b must be equal to z. 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 precedences between interval variables, see the concept Precedence constraints.