This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / optimize / _dual_annealing / VisitingDistribution

class

scipy.optimize._dual_annealing:VisitingDistribution

source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_dual_annealing.py:20

Signature

class VisitingDistribution(lb, ub, visiting_param, rng_gen)

Members

Summary

Class used to generate new coordinates based on the distorted Cauchy-Lorentz distribution. Depending on the steps within the strategy chain, the class implements the strategy for generating new location changes.

Parameters

lb : array_like

A 1-D NumPy ndarray containing lower bounds of the generated components. Neither NaN or inf are allowed.

ub : array_like

A 1-D NumPy ndarray containing upper bounds for the generated components. Neither NaN or inf are allowed.

visiting_param : float

Parameter for visiting distribution. Default value is 2.62. Higher values give the visiting distribution a heavier tail, this makes the algorithm jump to a more distant region. The value range is (1, 3]. Its value is fixed for the life of the object.

rng_gen : {`~numpy.random.Generator`}

A Generator object for generating new locations. (can be a RandomState object until SPEC007 transition is fully complete).

Aliases

  • scipy.optimize._dual_annealing.VisitingDistribution