optiprofiler.Problem.maxcv

Contents

optiprofiler.Problem.maxcv#

Problem.maxcv(x)[source]#

Evaluate the maximum constraint violation.

Parameters:
xarray_like, shape (n,)

Point at which to evaluate the maximum constraint violation.

Returns:
float

Maximum constraint violation.

Raises:
ValueError

If the argument x has an invalid shape.