bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / optimize / _dual_annealing / EnergyState
class
scipy.optimize._dual_annealing:EnergyState
source: build-install/usr/lib/python3.14/site-packages/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_likeA 1-D NumPy ndarray containing lower bounds for generating an initial random components in the reset method.
upper: array_likeA 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)``, optionalA callback function which will be called for all minima found.
xandfare the coordinates and function value of the latest minimum found, andcontexthas value in [0, 1, 2]
Aliases
scipy.optimize._dual_annealing.EnergyState