java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.scheduling.CumulativeDecomposition
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Cumulative constraint with sum decomposition (very slow).
-
Constructor Summary
ConstructorsConstructorDescriptionCumulativeDecomposition(CPIntVar[] start, int[] duration, int[] demand, int capa) Creates a cumulative constraint with a decomposition into sum constraint. -
Method Summary
Modifier and TypeMethodDescriptionvoidpost()Initializes the constraint when it is posted to the solver.Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, propagate, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
CumulativeDecomposition
Creates a cumulative constraint with a decomposition into sum constraint. At any time-point t, the sum of the demands of the activities overlapping t do not overlap the capacity.- Parameters:
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 constraint
-
-
Method Details
-
post
public void post()Description copied from interface:CPConstraintInitializes the constraint when it is posted to the solver.- Specified by:
postin interfaceCPConstraint- Overrides:
postin classAbstractCPConstraint
-