This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

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_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