rcognita.optimizers.SciPyOptimizer

class rcognita.optimizers.SciPyOptimizer(opt_method, opt_options, verbose=False)

Optimizer class using the SciPy optimization library.

engine

Name of the optimization engine.

Type

str

opt_method

Optimization method to use.

Type

str

opt_options

Options for the optimization method.

Type

dict

verbose

Whether to print optimization progress and timing.

Type

bool

__init__(opt_method, opt_options, verbose=False)

Initialize a SciPyOptimizer instance.

Parameters
  • opt_method – str, the name of the optimization method to use.

  • opt_options – dict, options for the optimization method.

  • verbose – bool, whether to print the optimization time and the objective function value before and after optimization.

Methods

__init__(opt_method, opt_options[, verbose])

Initialize a SciPyOptimizer instance.

optimize(*args, **kwargs)

verbose(opt_func)

A static method decorator that makes the decorated function verbose.

Attributes

engine