public class Stretch extends DecomposedConstraint<Constraint>
|Constructor and Description|
It creates a Stretch constraint.
|Modifier and Type||Method and Description|
It returns an array list of constraint which are used to decompose this constraint.
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)
store- the constraint store to which the constraint is imposed to.
public List<Constraint> decompose(Store store)
store- the constraint store in which context the decomposition takes place.
Copyright © 2022. All rights reserved.