nifty7.minimization.minimizer module#

class Minimizer[source]#

Bases: object

A base class used by all minimizers.

__call__(energy, preconditioner=None)[source]#

Performs the minimization of the provided Energy functional.

  • energy (Energy) – Energy object at the starting point of the iteration

  • preconditioner (LinearOperator, optional) – Preconditioner to accelerate the minimization


  • Energy (Latest energy of the minimization.)

  • int (exit status of the minimization) – Can be controller.CONVERGED or controller.ERROR