{ } Raw JSON

bundles / scipy latest / scipy / optimize / _differentialevolution / _ConstraintWrapper / violation

function

scipy.optimize._differentialevolution:_ConstraintWrapper.violation

source: /scipy/optimize/_differentialevolution.py :2003

Signature

def   violation ( self x )

Summary

How much the constraint is exceeded by.

Parameters

x : array-like

Vector of independent variables, (N, S), where N is number of parameters and S is the number of solutions to be investigated.

Returns

excess : array-like

How much the constraint is exceeded by, for each of the constraints specified by _ConstraintWrapper.fun. Has shape (M, S) where M is the number of constraint components.

Aliases

  • scipy.optimize._differentialevolution._ConstraintWrapper.violation