{ } Raw JSON

bundles / scipy latest / scipy / optimize / _dual_annealing / EnergyState

class

scipy.optimize._dual_annealing:EnergyState

source: /scipy/optimize/_dual_annealing.py :129

Signature

class   EnergyState ( lower upper callback = None )

Members

Summary

Class used to record the energy state. At any time, it knows what is the currently used coordinates and the most recent best location.

Parameters

lower : array_like

A 1-D NumPy ndarray containing lower bounds for generating an initial random components in the reset method.

upper : array_like

A 1-D NumPy ndarray containing upper bounds for generating an initial random components in the reset method components. Neither NaN or inf are allowed.

callback : callable, ``callback(x, f, context)``, optional

A callback function which will be called for all minima found. x and f are the coordinates and function value of the latest minimum found, and context has value in [0, 1, 2]

Aliases

  • scipy.optimize._dual_annealing.EnergyState