bundles / scipy 1.17.1 / scipy / optimize / _differentialevolution / DifferentialEvolutionSolver / _constraint_violation_fn
function
scipy.optimize._differentialevolution:DifferentialEvolutionSolver._constraint_violation_fn
Signature
def _constraint_violation_fn ( self , x ) Summary
Calculates total constraint violation for all the constraints, for a set of solutions.
Parameters
x: ndarraySolution vector(s). Has shape (S, N), or (N,), where S is the number of solutions to investigate and N is the number of parameters.
Returns
cv: ndarrayTotal violation of constraints. Has shape
(S, M), where M is the total number of constraint components (which is not necessarily equal to len(self._wrapped_constraints)).
Aliases
-
scipy.optimize._differentialevolution.DifferentialEvolutionSolver._constraint_violation_fn