public class Cumulative extends AbstractConstraint
| Constructor and Description |
|---|
Cumulative(IntVar[] start,
int[] duration,
int[] demand,
int capa)
Creates a cumulative constraint with a time-table filtering.
|
| Modifier and Type | Method and Description |
|---|---|
Profile |
buildProfile() |
void |
post()
Initializes the constraint when it is posted to the solver.
|
void |
propagate()
Propagates the constraint.
|
getSolver, isActive, isScheduled, setActive, setScheduledpublic Cumulative(IntVar[] start, int[] duration, int[] demand, int capa)
start - the start time of each activitiesduration - the duration of each activities (non negative)demand - the demand of each activities, non negativecapa - the capacity of the constraintpublic void post()
Constraintpost in interface Constraintpost in class AbstractConstraintpublic void propagate()
Constraintpropagate in interface Constraintpropagate in class AbstractConstraintpublic Profile buildProfile()
Copyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.