public class CumulativeBasic extends Constraint
| Modifier and Type | Field and Description |
|---|---|
IntVar |
limit
It specifies the limit of the profile of cumulative use of resources.
|
atomicExecution, consistencyPruningEvents, constraintScope, earlyTerminationOK, increaseWeight, numberId, scope, tracequeueIndex| Constructor and Description |
|---|
CumulativeBasic(IntVar[] starts,
IntVar[] durations,
IntVar[] resources,
IntVar limit)
It creates a cumulative constraint.
|
CumulativeBasic(List<? extends IntVar> starts,
List<? extends IntVar> durations,
List<? extends IntVar> resources,
IntVar limit)
It creates a cumulative constraint.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consistency(Store store)
It is a (most probably incomplete) consistency function which removes the
values from variables domains.
|
int |
getDefaultConsistencyPruningEvent() |
String |
toString()
It produces a string representation of a constraint state.
|
afc, arguments, cleanAfterFailure, decompose, getConsistencyPruningEvent, getGuideConstraint, getGuideValue, getGuideVariable, grounded, grounded, id, impose, impose, imposeDecomposition, increaseWeight, intArrayToString, long2int, numberArgs, queueVariable, removeConstraint, requiresMonotonicity, setConsistencyPruningEvent, setConstraintScope, setScope, setScope, setScope, setScope, setScope, setWatchedVariableGrounded, supplyGuideFeedback, updateAFC, watchedVariableGroundedauxiliaryVariables, checkInput, checkInput, checkInputForDuplication, checkInputForDuplicationSkipSingletons, checkInputForNullness, checkInputForNullness, checkInputForNullness, derivative, getDubletonsSkipSingletons, imposeDecompositionpublic final IntVar limit
public CumulativeBasic(IntVar[] starts, IntVar[] durations, IntVar[] resources, IntVar limit)
starts - variables denoting starts of the tasks.durations - variables denoting durations of the tasks.resources - variables denoting resource usage of the tasks.limit - the overall limit of resources which has to be used.public CumulativeBasic(List<? extends IntVar> starts, List<? extends IntVar> durations, List<? extends IntVar> resources, IntVar limit)
starts - variables denoting starts of the tasks.durations - variables denoting durations of the tasks.resources - variables denoting resource usage of the tasks.limit - the overall limit of resources which has to be used.public void consistency(Store store)
Constraintconsistency in class Constraintstore - constraint store within which the constraint consistency is being checked.public int getDefaultConsistencyPruningEvent()
getDefaultConsistencyPruningEvent in class Constraintpublic String toString()
ConstrainttoString in class ConstraintCopyright © 2022. All rights reserved.