solve()#

GCV.solve(bounds: Collection[float | None] | None = None, stepsize: float = 10, **kwargs) tuple[ndarray, dict]Source#

Solve the ill-posed inversion equation.

This method is used to seek the optimal regularization parameter finding the global minimum of an objective function using the basinhopping function.

An objective function _objective_function must be defined in the subclass.

Parameters:
boundsCollection[float | None], optional

Boundary pair of log10 of regularization parameters, by default bounds. Users can specify either lower or upper bound or both like (1.0, None).

stepsizefloat, optional

Stepsize of optimization, by default 10.

**kwargsdict, optional

Keyword arguments for basinhopping function.

Returns:
sol(N, ) array

1-D array of the solution vector.

resOptimizeResult

Object returned by basinhopping function.