public class ConstraintsUtils
extends java.lang.Object
Constraints.| Constructor and Description |
|---|
ConstraintsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Vector |
evaluate(Constraints constraints,
Vector x)
Evaluate the constraints.
|
static boolean |
isSatisfied(Constraints constraints,
Vector x)
Check if the constraints are satisfied.
|
static boolean |
isSatisfied(Constraints constraints,
Vector x,
double epsilon)
Check if the constraints are satisfied.
|
public static boolean isSatisfied(Constraints constraints, Vector x, double epsilon)
constraints - the constraintsx - the value to evaluate the constraints atepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0true if the constraints are satisfiedpublic static boolean isSatisfied(Constraints constraints, Vector x)
constraints - the constraintsx - the value to evaluate the constraints attrue if the constraints are satisfiedpublic static Vector evaluate(Constraints constraints, Vector x)
constraints - the constraintsx - the value to evaluate the constraints at