Package org.jacop.constraints.cumulative
Class CumulativeUnaryOptional
java.lang.Object
org.jacop.constraints.DecomposedConstraint<Constraint>
org.jacop.constraints.Constraint
org.jacop.constraints.cumulative.CumulativeBasic
org.jacop.constraints.cumulative.Cumulative
org.jacop.constraints.cumulative.CumulativeUnary
org.jacop.constraints.cumulative.CumulativeUnaryOptional
-
Field Summary
FieldsFields inherited from class org.jacop.constraints.cumulative.CumulativeUnary
doEdgeFind, doProfile, tvn, tvr
Fields inherited from class org.jacop.constraints.cumulative.Cumulative
doQuadraticEdgeFind, taskDecLctComparator, taskIncEstComparator, taskReversed
Fields inherited from class org.jacop.constraints.cumulative.CumulativeBasic
cumulativeForConstants, limit, possibleZeroTasks, taskNormal
Fields inherited from class org.jacop.constraints.Constraint
atomicExecution, consistencyPruningEvents, constraintScope, earlyTerminationOK, increaseWeight, numberId, scope, trace
Fields inherited from class org.jacop.constraints.DecomposedConstraint
queueIndex
-
Constructor Summary
ConstructorsConstructorDescriptionCumulativeUnaryOptional
(List<? extends IntVar> starts, List<? extends IntVar> durations, List<? extends IntVar> resources, IntVar limit, List<? extends IntVar> opt) It creates a cumulative constraint.CumulativeUnaryOptional
(List<? extends IntVar> starts, List<? extends IntVar> durations, List<? extends IntVar> resources, IntVar limit, List<? extends IntVar> opt, boolean doProfile) It creates a cumulative constraint.CumulativeUnaryOptional
(IntVar[] starts, IntVar[] durations, IntVar[] resources, IntVar limit, IntVar[] opt) It creates a cumulative constraint.CumulativeUnaryOptional
(IntVar[] starts, IntVar[] durations, IntVar[] resources, IntVar limit, IntVar[] opt, boolean doProfile) It creates a cumulative constraint.CumulativeUnaryOptional
(IntVar[] starts, IntVar[] durations, IntVar[] resources, IntVar limit, IntVar[] opt, boolean doProfile, boolean doEdgeFind) It creates a cumulative constraint. -
Method Summary
Modifier and TypeMethodDescriptionvoid
consistency
(Store store) It is a (most probably incomplete) consistency function which removes the values from variables domains.(package private) TaskView[]
filterZeroTasks
(TaskView[] ts) toString()
It produces a string representation of a constraint state.Methods inherited from class org.jacop.constraints.cumulative.CumulativeUnary
detectable, edgeFind, notFirstNotLast, overload
Methods inherited from class org.jacop.constraints.cumulative.Cumulative
doQuadraticEdgeFind, edgeFind, edgeFindQuad, getDefaultConsistencyPruningEvent
Methods inherited from class org.jacop.constraints.cumulative.CumulativeBasic
profileProp
Methods inherited from class org.jacop.constraints.Constraint
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, watchedVariableGrounded
Methods inherited from class org.jacop.constraints.DecomposedConstraint
auxiliaryVariables, checkInput, checkInput, checkInputForDuplication, checkInputForDuplicationSkipSingletons, checkInputForNullness, checkInputForNullness, checkInputForNullness, derivative, getDubletonsSkipSingletons, imposeDecomposition
-
Field Details
-
opt
IntVar[] opt -
up
-
-
Constructor Details
-
CumulativeUnaryOptional
public CumulativeUnaryOptional(IntVar[] starts, IntVar[] durations, IntVar[] resources, IntVar limit, IntVar[] opt) It creates a cumulative constraint.- Parameters:
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.opt
- variables informing whether the tasks is present or not.
-
CumulativeUnaryOptional
public CumulativeUnaryOptional(IntVar[] starts, IntVar[] durations, IntVar[] resources, IntVar limit, IntVar[] opt, boolean doProfile) It creates a cumulative constraint.- Parameters:
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.opt
- variables informing whether the tasks is present or not.doProfile
- defines whether to do profile-based propagation (true) or not (false); default is false
-
CumulativeUnaryOptional
public CumulativeUnaryOptional(IntVar[] starts, IntVar[] durations, IntVar[] resources, IntVar limit, IntVar[] opt, boolean doProfile, boolean doEdgeFind) It creates a cumulative constraint.- Parameters:
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.opt
- variables informing whether the tasks is present or not.doProfile
- defines whether to do profile-based propagation (true) or not (false);doEdgeFind
- defines whether to do edge finding propagation (true) or not (false); default is true
-
CumulativeUnaryOptional
public CumulativeUnaryOptional(List<? extends IntVar> starts, List<? extends IntVar> durations, List<? extends IntVar> resources, IntVar limit, List<? extends IntVar> opt) It creates a cumulative constraint.- Parameters:
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.opt
- variables informing whether the tasks is present or not.
-
CumulativeUnaryOptional
public CumulativeUnaryOptional(List<? extends IntVar> starts, List<? extends IntVar> durations, List<? extends IntVar> resources, IntVar limit, List<? extends IntVar> opt, boolean doProfile) It creates a cumulative constraint.- Parameters:
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.opt
- variables informing whether the tasks is present or not.doProfile
- defines whether to do profile-based propagation (true) or not (false); default is false
-
-
Method Details
-
consistency
Description copied from class:Constraint
It is a (most probably incomplete) consistency function which removes the values from variables domains. Only values which do not have any support in a solution space are removed.- Overrides:
consistency
in classCumulativeUnary
- Parameters:
store
- constraint store within which the constraint consistency is being checked.
-
filterZeroTasks
- Overrides:
filterZeroTasks
in classCumulative
-
toString
Description copied from class:Constraint
It produces a string representation of a constraint state.- Overrides:
toString
in classCumulativeUnary
-