Products & Services Solutions Academia Support User Community Company

Learn more about Genetic Algorithm and Direct Search Toolbox   

How Simulated Annealing Works

Outline of the Algorithm

The following is an outline of the steps performed for the simulated annealing algorithm:

  1. The algorithm begins by randomly generating a new point. The distance of the new point from the current point, or the extent of the search, is determined by a probability distribution with a scale proportional to the current temperature.

  2. The algorithm determines whether the new point is better or worse than the current point. If the new point is better than the current point, it becomes the next point. If the new point is worse than the current point, the algorithm may still make it the next point. The algorithm accepts a worse point based on an acceptance probability.

  3. The algorithm systematically lowers the temperature, storing the best point found so far.

  4. Reannealing is performed after a certain number of points (ReannealInterval) are accepted by the solver. Reannealing raises the temperature in each dimension, depending on sensitivity information. The search is resumed with the new temperature values.

  5. The algorithm stops when the average change in the objective function is very small, or when any other stopping criteria are met. See Stopping Conditions for the Algorithm.

Stopping Conditions for the Algorithm

The simulated annealing algorithm uses the following conditions to determine when to stop:

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS