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