bundles / scipy 1.17.1 / scipy / optimize / _lsq / common / find_active_constraints
function
scipy.optimize._lsq.common:find_active_constraints
Signature
def find_active_constraints ( x , lb , ub , rtol = 1e-10 ) Summary
Determine which constraints are active in a given point.
Extended Summary
The threshold is computed using rtol and the absolute value of the closest bound.
Returns
active: ndarray of int with shape of xEach component shows whether the corresponding constraint is active:
0 - a constraint is not active.
-1 - a lower bound is active.
1 - a upper bound is active.
Aliases
-
scipy.optimize._lsq.common.find_active_constraints