public final class ConstraintsUtils extends Object
| Constructor and Description |
|---|
ConstraintsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Vector |
evaluate(Constraints constraints,
Vector x)
Evaluates the constraints.
|
static boolean |
isSatisfied(Constraints constraints,
Vector x)
Checks if the constraints are satisfied.
|
static boolean |
isSatisfied(Constraints constraints,
Vector x,
double epsilon)
Checks 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 atCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.