Skip to main content
FRAMES NO FRAMES

IloStartBeforeStart

public IloConstraint IloStartBeforeStart(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)-start(a) between the start of interval a and the start 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.


IloStartBeforeStart

public IloConstraint IloStartBeforeStart(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)-start(a) between the start of interval a and the start 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.