altbacken.internal.neighbourhood.adaptive

Classes

ConstantEpsilon(epsilon)

Represents a constant epsilon strategy.

Epsilon(*args, **kwargs)

Defines a protocol for callable objects that compute a value based on an AnnealingState.

class altbacken.internal.neighbourhood.adaptive.Epsilon(*args, **kwargs)[source]

Bases: Protocol, Generic

Defines a protocol for callable objects that compute a value based on an AnnealingState.

The Epsilon protocol is a generic interface designed for classes or functions that define a step size based on some conditions of the annealing state.

None
__call__(state: AnnealingState) E[source]
Parameters:

state

Returns:

__init__(*args, **kwargs)
class altbacken.internal.neighbourhood.adaptive.ConstantEpsilon(epsilon: E)[source]

Bases: Generic

Represents a constant epsilon strategy.

This class is used to provide a constant value of epsilon throughout its usage. The value of epsilon is determined upon initialization and remains constant. It can be used in scenarios where a fixed parameter value is required across different states or iterations.

epsilon

The constant epsilon value.

Type:

E

__init__(epsilon: E)[source]
__call__(_: AnnealingState) E[source]

Call self as a function.