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