public class Stretch extends DecomposedConstraint
queueIndex| Constructor and Description |
|---|
Stretch(int[] values,
int[] min,
int[] max,
IntVar[] x)
It creates a Stretch constraint.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList<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, derivative, imposeDecompositionpublic 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)
DecomposedConstraintimposeDecomposition in class DecomposedConstraintstore - the constraint store to which the constraint is imposed to.public ArrayList<Constraint> decompose(Store store)
DecomposedConstraintdecompose in class DecomposedConstraintstore - the constraint store in which context the decomposition takes place.Copyright © 2016. All rights reserved.