4. pyopus.optimizer — Optimization algorithms

Optimization algorithms and test function suites module

This module provides unconstrained and bound constrained optimization algorithms.

Nothing from the submodules of this module is imported into the main optimizer module. The optimizer module provides only the optimizerClass() function for on-demand loading of optimizer classes.

Optimization algorithms search for the argument which results in the lowest possible value of the cost function. The search can be constrained meaning that only certain values of the argument are allowed.

Iteration of the optimization algorithm is another name for the consecutive number of cost function evaluation.

pyopus.optimizer.optimizerClass(className)

Returns the class object of the optimizer named className. Raises an exception if the optimizer class object is not found.

This function provides on-demand loading of optimizer classes.

To create an optimizer object of the class HookeJeeves that minimizes function f and put it in opt use:

from pyopus.optimizer import optimizerClass
OptClass=optimizerClass('HookeJeeves')
opt=OptClass(f)