CADETProcess.optimization.OptimizationProblem.check_linear_constraints#
- OptimizationProblem.check_linear_constraints(x: ArrayLike, cv_lincon_tol: float | ndarray | None = 0.0) bool[source]#
Check if linear inequality constraints are met at point x.
- Parameters:
- xnpt.ArrayLike
Value of the optimization variables in untransformed space.
- cv_lincon_tolfloat or np.ndarray, optional
Tolerance for checking the linear constraints. If a scalar is provided, the same value is used for all constraints. Default is 0.0.
- Returns:
- flagbool
True if linear inequality constraints are met. False otherwise.
- Raises:
- ValueError
If the length of cv_lincon_tol does not match the number of constraints.
See also