Package org.jacop.floats.constraints
Class CosPeqR_decomposed
java.lang.Object
org.jacop.constraints.DecomposedConstraint<Constraint>
org.jacop.floats.constraints.CosPeqR_decomposed
Constraints cos(P) = R
Bounds consistency can be used; third parameter of constructor controls this.
- Version:
- 4.8
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) List<Constraint>
It contains constraints of the CosPeqR_decomposed constraint decomposition.It contains variable p.It contains variable q.Fields inherited from class org.jacop.constraints.DecomposedConstraint
queueIndex
-
Constructor Summary
ConstructorsConstructorDescriptionIt constructs cos(P) = Q constraints. -
Method Summary
Modifier and TypeMethodDescriptionIt 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.toString()
Methods inherited from class org.jacop.constraints.DecomposedConstraint
auxiliaryVariables, checkInput, checkInput, checkInputForDuplication, checkInputForDuplicationSkipSingletons, checkInputForNullness, checkInputForNullness, checkInputForNullness, derivative, getDubletonsSkipSingletons, imposeDecomposition
-
Field Details
-
p
It contains variable p. -
q
It contains variable q. -
constraints
List<Constraint> constraintsIt contains constraints of the CosPeqR_decomposed constraint decomposition.
-
-
Constructor Details
-
CosPeqR_decomposed
It constructs cos(P) = Q constraints.- Parameters:
p
- variable Pq
- variable Q
-
-
Method Details
-
toString
-
imposeDecomposition
Description copied from class:DecomposedConstraint
It imposes the constraint in a given store.- Specified by:
imposeDecomposition
in classDecomposedConstraint<Constraint>
- Parameters:
store
- the constraint store to which the constraint is imposed to.
-
decompose
Description copied from class:DecomposedConstraint
It returns an array list of constraint which are used to decompose this constraint. It actually creates a decomposition (possibly also creating variables), but it does not impose the constraint.- Specified by:
decompose
in classDecomposedConstraint<Constraint>
- Parameters:
store
- the constraint store in which context the decomposition takes place.- Returns:
- an array list of constraints used to decompose this constraint.
-