bundles / scipy latest / scipy / optimize / _constraints / PreparedConstraint / violation
function
scipy.optimize._constraints:PreparedConstraint.violation
source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_constraints.py:433
Signature
def violation(self, x)Summary
How much the constraint is exceeded by.
Parameters
x: array-likeVector of independent variables
Returns
excess: array-likeHow much the constraint is exceeded by, for each of the constraints specified by
PreparedConstraint.fun.
Aliases
scipy.optimize._constraints.PreparedConstraint.violation