public class CumulativeDecomposition extends AbstractConstraint
| Constructor and Description |
|---|
CumulativeDecomposition(IntVar[] start,
int[] duration,
int[] demand,
int capa)
Creates a cumulative constraint with a decomposition into sum constraint.
|
| Modifier and Type | Method and Description |
|---|---|
void |
post()
Initializes the constraint when it is posted to the solver.
|
getSolver, isActive, isScheduled, propagate, setActive, setScheduledpublic CumulativeDecomposition(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 AbstractConstraintCopyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.