MomentGauge.Optim.BaseOptimizer#

Module Contents#

Classes#

BaseOptimizer

The base class for optimizer

class MomentGauge.Optim.BaseOptimizer.BaseOptimizer(target_function, **kwargs)#

The base class for optimizer

Parameters:
  • target_function (function) –

    the function to be optimized by the Netwons method whose

    Parameters:

    input_para : float array of shape (n) - The parameter to be optimized

    \(*\) aux_paras : - Arbitrary many extra parameters not to be optimized. The \(*\) refers to the unpacking operator in python.

    Returns:

    float – the function value

  • **kwargs (other key word arguments.) –

abstract optimize(input_para, *aux_paras)#

optimization of the target_function

Parameters:
  • input_para (float array of shape (n)) – the input parameters for the target_function to be optimized.

  • *aux_paras – Arbitrary many extra parameters not to be optimized for the target_function.

Returns:

A tuple containing

opt_para: float array of shape (n) - The optimized parameters.

opt_info: tuple - A tuple containing other information

Return type:

Tuple