public class Arithmetic extends DecomposedConstraint<Constraint>
Modifier and Type | Field and Description |
---|---|
protected List<int[]> |
eqns |
protected Map<IntVar,Integer> |
map |
static IntVar |
NULL_VAR |
protected List<IntVar> |
vars |
queueIndex
Constructor and Description |
---|
Arithmetic() |
Modifier and Type | Method and Description |
---|---|
void |
addEquation(IntVar[] vars,
int[] coeffs) |
void |
addEquation(IntVar[] vars,
int[] coeffs,
int constant) |
void |
addSum(IntVar[] vars,
IntVar sum) |
void |
addXplusYeqZ(IntVar x,
IntVar y,
IntVar z) |
void |
addXsubYeqZ(IntVar x,
IntVar y,
IntVar z) |
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.
|
protected boolean |
optimize(int[] sum) |
List<Constraint> |
primitiveDecomposition(Store store) |
auxiliaryVariables, checkInput, checkInput, checkInputForDuplication, checkInputForDuplicationSkipSingletons, checkInputForNullness, checkInputForNullness, checkInputForNullness, derivative, getDubletonsSkipSingletons, imposeDecomposition
public void addEquation(IntVar[] vars, int[] coeffs)
public void addEquation(IntVar[] vars, int[] coeffs, int constant)
public List<Constraint> primitiveDecomposition(Store store)
protected boolean optimize(int[] sum)
public List<Constraint> decompose(Store store)
DecomposedConstraint
decompose
in class DecomposedConstraint<Constraint>
store
- the constraint store in which context the decomposition takes place.public void imposeDecomposition(Store store)
DecomposedConstraint
imposeDecomposition
in class DecomposedConstraint<Constraint>
store
- the constraint store to which the constraint is imposed to.Copyright © 2022. All rights reserved.