Interface IDecompositionFactory
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidcumulativeTimeDecomp(IntVar[] starts, int[] durations, int[] heights, int capacity)Creates and posts a decomposition of a cumulative constraint: associates a boolean variable to each task and each point of time sich that the scalar product of boolean variables per heights for each time never exceed capacity.default IntVar[]regularDec(IntVar[] vars, IAutomaton automaton)Creates and posts a decomposition of a regular constraint.
-
-
-
Method Detail
-
cumulativeTimeDecomp
default void cumulativeTimeDecomp(IntVar[] starts, int[] durations, int[] heights, int capacity)
Creates and posts a decomposition of a cumulative constraint: associates a boolean variable to each task and each point of time sich that the scalar product of boolean variables per heights for each time never exceed capacity.- Parameters:
starts- starting time of each taskdurations- processing time of each taskheights- resource consumption of each taskcapacity- resource capacity- See Also:
IIntConstraintFactory.cumulative(IntVar[], int[], int[], int)
-
regularDec
default IntVar[] regularDec(IntVar[] vars, IAutomaton automaton)
Creates and posts a decomposition of a regular constraint. Enforces the sequence of vars to be a word recognized by the deterministic finite automaton. For example regexp = "(1|2)(3*)(4|5)"; The same dfa can be used for different propagators.- Parameters:
vars- sequence of variablesautomaton- a deterministic finite automaton defining the regular language- Returns:
- array of variables that encodes the states, which can optionally be constrained too.
-
-