public class Lex extends DecomposedConstraint<Constraint>
Modifier and Type | Field and Description |
---|---|
boolean |
lexLT
Is the lex enforcing lower then relationship?
|
IntVar[][] |
x
A two dimensional array containing arrays which have to be lexicographically ordered.
|
queueIndex
Constructor and Description |
---|
Lex(IntVar[][] x)
It creates a lexicographical order for vectors x[i], i.e.
|
Lex(IntVar[][] x,
boolean lt) |
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.
|
List<Constraint> |
decomposeLE(Store store) |
List<Constraint> |
decomposeLERegular(Store store) |
List<Constraint> |
decomposeLT(Store store) |
List<Constraint> |
decomposeLTRegular(Store store) |
void |
imposeDecomposition(Store store)
It imposes the constraint in a given store.
|
auxiliaryVariables, checkInput, checkInput, checkInputForDuplication, checkInputForDuplicationSkipSingletons, checkInputForNullness, checkInputForNullness, checkInputForNullness, derivative, getDubletonsSkipSingletons, imposeDecomposition
public IntVar[][] x
public final boolean lexLT
public Lex(IntVar[][] x)
vectors x[i] does not need to be of the same size. boolea lt defines if we require Lex_{<} (lt = false) or Lex_{=<} (lt = true)
x
- vector of vectors which assignment is constrained by Lex constraint.public Lex(IntVar[][] x, boolean lt)
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.public List<Constraint> decomposeLERegular(Store store)
public List<Constraint> decomposeLTRegular(Store store)
public List<Constraint> decomposeLT(Store store)
public List<Constraint> decomposeLE(Store store)
Copyright © 2022. All rights reserved.