cherab.phix.inversion.inversion._SVDBase.solve#

_SVDBase.solve(bounds=(-20.0, 2.0), stepsize=10, **kwargs)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:
  • bounds (tuple[float, float]) – bounds of log10 of regularization parameter, by default (-20.0, 2.0).

  • stepsize (float) – stepsize of optimization, by default 10.

  • **kwargs – keyword arguments for basinhopping function.

Returns:

(solution, res), where solution is the inverted solution vector and res is the result of optimization generated by basinhopping.

Return type:

tuple of ndarray and OptimizeResult