altbacken.internal.neighbourhood.adaptive
Classes
|
Represents a constant epsilon strategy. |
|
Defines a protocol for callable objects that compute a value based on an AnnealingState. |
- class altbacken.internal.neighbourhood.adaptive.Epsilon(*args, **kwargs)[source]
-
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:
GenericRepresents 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
- __call__(_: AnnealingState) E[source]
Call self as a function.