Overview | Group | Tree | Graph | Index | Concepts |
Instances of the class IloPrecedenceConstraint
are temporal
constraints. These temporal constraints express precedence between
activities in a schedule. (Other temporal constraints—instances of
IloTimeBoundConstraint
—express
constraints on the time interval in which an activity is to be
scheduled.)
This class inherits from the IBM ILOG Concert Technology class
IloConstraint
. That class is documented in the IBM ILOG Concert
Technology Reference Manual.
Instances of this class are created by these member functions:
IloActivity::startsAfterStart
IloActivity::startsAfterEnd
IloActivity::endsAfterStart
IloActivity::endsAfterEnd
IloActivity::startsAtStart
IloActivity::startsAtEnd
IloActivity::endsAtStart
IloActivity::endsAtEnd
For more information, see
IloConstraint
in the IBM ILOG Concert Technology Reference Manual, and
Temporal Relations.
See Also:
IloActivity, IloActivityConstraintsParam
Constructor Summary | |
---|---|
public | IloPrecedenceConstraint() |
public | IloPrecedenceConstraint(IloPrecedenceConstraintI * impl) |
Method Summary | |
---|---|
public IloNum | getDelay() const |
public IloNumVar | getDelayVariable() const |
public IloActivity | getFollowingActivity() const |
public IloPrecedenceConstraintI * | getImpl() const |
public IloActivity | getPrecedingActivity() const |
public IloPrecedenceConstraintType | getType() const |
public IloBool | hasDelayVariable() const |
Constructor Detail |
---|
Method Detail |
---|
This member function returns the delay of the invoking precedence constraint.
Example
The statement
m.add(act2.startsAfterEnd(act1, delay));
posts the constraint that at least the given delay
must
elapse between the end of the preceding activity act1
and the
start of the following activity act2
.
This member function returns the delay variable of the invoking precedence constraint.
This member function returns the following activity of the invoking precedence constraint.
This member function returns the preceding activity of the invoking precedence constraint.
This member function returns the type of the invoking precedence constraint.
This member function returns IloTrue
if the invoking
precedence constraint has a delay variable. Otherwise, if the delay is constant, it returns
IloFalse
.