Struct rgsl::types::siman::SimAnnealing

source ·
pub struct SimAnnealing<T: Clone> { /* private fields */ }

Implementations§

This function performs a simulated annealing search through a given space. The space is specified by providing the functions Ef and distance. The simulated annealing steps are generated using the random number generator rng and the function take_step.

The starting configuration of the system should be given by x0_p.

The params structure (described below) controls the run by providing the temperature schedule and other tunable parameters to the algorithm.

On exit the best result achieved during the search is returned. If the annealing process has been successful this should be a good approximation to the optimal point in the space.

If the argument print_pos is not None, a debugging log will be printed to stdout with the following columns: #-iter #-evals temperature position energy best_energy and the output of the function print position itself.

Like the function solve, but performs multiple runs and returns the best result.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.