CADETProcess.optimization.OptimizationProblem.check_nonlinear_constraints#
- OptimizationProblem.check_nonlinear_constraints(x: ArrayLike, cv_nonlincon_tol: float | ndarray | None = 0.0) bool[source]#
Check if all nonlinear constraints are met.
- Parameters:
- xnpt.ArrayLike
Value of the optimization variables in untransformed space.
- cv_nonlincon_tolfloat or np.ndarray, optional
Tolerance for checking the nonlinear constraints. If a scalar is provided, the same value is used for all constraints. Default is 0.0.
- Returns:
- flagbool
True if all nonlinear constraints violation are smaller or equal to zero, False otherwise.
- Raises:
- ValueError
If length of cv_nonlincon_tol does not match the number of constraints.