{ } Raw JSON

bundles / scipy latest / scipy / optimize / _constraints / PreparedConstraint / violation

function

scipy.optimize._constraints:PreparedConstraint.violation

source: /scipy/optimize/_constraints.py :391

Signature

def   violation ( self x )

Summary

How much the constraint is exceeded by.

Parameters

x : array-like

Vector of independent variables

Returns

excess : array-like

How much the constraint is exceeded by, for each of the constraints specified by PreparedConstraint.fun.

Aliases

  • scipy.optimize._constraints.PreparedConstraint.violation