View Source Annealing.Controller.Acceptance (annealing v0.5.0-beta.1)

Contains function clauses that determine solution acceptance.

Summary

Types

annealing_state()

@type annealing_state() :: Annealing.Controller.state()

material()

@type material() :: Annealing.Material.t()

Functions

choose_best_material(current_state, prior_state)

@spec choose_best_material(annealing_state(), annealing_state()) :: annealing_state()

metropolis_probability(arg1, arg2)

Acceptance probability calculting using Metropolis criteria

should_accept?(current_state, prior_state)

@spec should_accept?(annealing_state(), annealing_state()) :: boolean()
@spec should_accept?(annealing_state(), annealing_state()) :: boolean()