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, setScheduled
public 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()
Constraint
post
in interface Constraint
post
in class AbstractConstraint
Copyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.