Skip to main content
FRAMES NO FRAMES

IloEndBeforeEnd

public IloConstraint IloEndBeforeEnd(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 end(b)-end(a) between the end of interval a and the end of interval b must be greater than or 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.


IloEndBeforeEnd

public IloConstraint IloEndBeforeEnd(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 end(b)-end(a) between the end of interval a and the end of interval b must be greater than or 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.