The simulated annealing algorithm is a general algorithmic method for solving the global optimization problem, especially discrete and combinatorial optimization . One example of Monte Carlo methods .
Content
General Description
The algorithm is based on a simulation of a physical process that occurs during crystallization of a substance , including during annealing of metals . It is assumed that the atoms are already lined up in a crystal lattice , but transitions of individual atoms from one cell to another are still permissible. It is assumed that the process proceeds at a gradually decreasing temperature . The transition of an atom from one cell to another occurs with some probability , and the probability decreases with decreasing temperature. A stable crystal lattice corresponds to the minimum energy of atoms, so the atom either goes into a state with a lower level of energy, or remains in place. (This algorithm is also called the N. Metropolis algorithm, named after its author).
By modeling such a process, a point or a set of points is sought at which a minimum of some numerical function is reached where . The solution is sought by sequential point computation. of space ; every point starting , "Claims" to better approximate the solution than the previous ones. Algorithm takes a point as source data. At each step, the algorithm (which is described below) calculates a new point and lowers the value of the value (initially positive), understood as “temperature”. The algorithm stops when it reaches a point that turns out to be zero at a temperature.
Point according to the algorithm is obtained based on the current point in the following way. To the point operator applies , which randomly modifies the corresponding point, resulting in a new point . Point becomes a point with probability , which is calculated in accordance with the Gibbs distribution :
Here - elements of an arbitrary decreasing, converging to zero positive sequence, which sets the analogue of the falling temperature in the crystal. The rate of decrease and the law of decrease can be set at the request of the creator of the algorithm.
The simulated annealing algorithm is similar to gradient descent , but due to the randomness of the choice of an intermediate point, it should fall into local minima less often than gradient descent. The annealing simulation algorithm does not guarantee that the minimum of the function is found, however, with the correct policy for generating a random point in space As a rule, the initial approximation improves.
Application
- Neural network training
- The solution of combinatorial problems, for example, the problem of placing queens
- The solution of the traveling salesman problem [1]
See also
- Quantum annealing method
Notes
Literature
- Callan Robert. The basic concepts of neural networks. - M .: Williams Publishing House, 2003 .-- 288 p. - ISBN 5-8459-0219-X . - S. 146-148.
- Kirsanov M.N. Counts in Maple . - M .: Fizmatlit, 2007 .-- 168 p. - ISBN 978-5-9221-0745-7 . - S. 151-154.
- Jones M.T. Programming Artificial Intelligence in Applications. - M .: DMK Press, 2004 .-- 312 p. - ISBN 5-94074-275-0 . - S. 25–42.