public class Stretch extends DecomposedConstraint<Constraint>
queueIndex
Constructor and Description |
---|
Stretch(int[] values,
int[] min,
int[] max,
IntVar[] x)
It creates a Stretch constraint.
|
Modifier and Type | Method and Description |
---|---|
List<Constraint> |
decompose(Store store)
It returns an array list of constraint which are used to decompose this
constraint.
|
void |
imposeDecomposition(Store store)
It imposes the constraint in a given store.
|
auxiliaryVariables, checkInput, checkInput, checkInputForDuplication, checkInputForDuplicationSkipSingletons, checkInputForNullness, checkInputForNullness, checkInputForNullness, derivative, getDubletonsSkipSingletons, imposeDecomposition
public Stretch(int[] values, int[] min, int[] max, IntVar[] x)
values
- a list of values which can be taken by variables.min
- the minimal sequence length for each value.max
- the maximal sequence length for each value.x
- variables which assignment is constrained by Stretch constraint.public void imposeDecomposition(Store store)
DecomposedConstraint
imposeDecomposition
in class DecomposedConstraint<Constraint>
store
- the constraint store to which the constraint is imposed to.public List<Constraint> decompose(Store store)
DecomposedConstraint
decompose
in class DecomposedConstraint<Constraint>
store
- the constraint store in which context the decomposition takes place.Copyright © 2022. All rights reserved.