Answers.Body: <p><strong>Examples of simulated annealing in the 2010s</strong></p>
  
  <p>These are a few examples.</p>
  
  <ul>
  <li><p><a href="https://arxiv.org/pdf/1401.1084.pdf" rel="nofollow noreferrer"><em>Optimised simulated annealing for Ising spin glasses</em></a>, 2015, S.V. Isakov et. al.</p></li>
  <li><p><a href="https://www.researchgate.net/profile/Chao_Wang213/publication/272753635_A_parallel_simulated_annealing_method_for_the_vehicle_routing_problem_with_simultaneous_pickup-delivery_and_time_windows/links/5ac6e5cea6fdcc8bfc7f86f9/A-parallel-simulated-annealing-method-for-the-vehicle-routing-problem-with-simultaneous-pickup-delivery-and-time-windows.pdf" rel="nofollow noreferrer"><em>A parallel simulated annealing method for the vehicle routing problem with simultaneous pickup–delivery and time windows</em></a>, 2014, Chao Wang et. al.</p></li>
  <li><p><a href="https://arxiv.org/pdf/1409.7186.pdf" rel="nofollow noreferrer"><em>Feature-based tuning of simulated annealing applied to the curriculum-based course timetabling problem</em></a>, 2015, Ruggero Bellio et. al.</p></li>
  </ul>
  
  <p><strong>Analysis of Quote in the Question</strong></p>
  
  <p>The quote in the question is from page 125 of <em>Artificial Intelligence: A Modern Approach</em>, Stuart Russell and Peter Norvig, 2010, 3rd Edition. </p>
  
  <p>The quote begins with the statement, "A hill-climbing algorithm that never makes 'downhill' moves toward states with lower value (or higher cost) is guaranteed to be incomplete," which is not strictly true. The stated guarantee has at least two important exceptions.</p>
  
  <ul>
  <li>The class of hills being climbed have only one peak</li>
  <li>The search is executed using parallel computing architecture scaled such that search granularity includes no more than one peak per processing unit</li>
  </ul>
  
  <p>Describing simulated annealing using the analogy of combining inverted hill climbing and random walk, as Stuart and Norvig explains it, is not as clear and technically accurate as the original analogy. It is often better to find original sources of ideas and read them than to read simplified explanations. The original ideas may be just as easy or easier to understand than the textbook paraphrases (which is why the best textbooks simply quote the originating authors).</p>
  
  <p><strong>Source of the Term</strong></p>
  
  <p>The original algorithm termed <em>simulated annealing</em> is introduced in <em>Optimization by Simulated Annealing</em>, Kirkpatrick et. al.<sup>1</sup>, which may not qualify as one one explicitly employed by AI researchers or practitioners on a daily basis. Simulating the atomic motion of metals during annealing is the first of several approaches to injecting pseudo-random perturbations into convergence mechanisms. An approximation of a <span class="math-container">${\chi}^2$</span> distribution with <span class="math-container">$k$</span> degrees of freedom is a more progressive injection source.</p>
  
  <p>These approaches share the common goal of avoiding the mistaking of a local minimum in loss surface as its global minimum. Such mistaken conclusion causes a failure to achieve an optimal learning state according to the criteria the loss function represents.</p>
  
  <p>As can be seen in the below excerpts, the original article is a good read and sets a foundation of understanding. Such a foundation will assist in understanding all methods used avoid local minima using stochastic injection.</p>
  
  <blockquote>
    <p>Iterative improvement consists of a search in this coordinate space for
    rearrangement steps which lead downhill. Since this search usually gets stuck in a local but not a global optimum, it is customary to carry out the process several times, starting from different randomly generated configurations, and save the best result.</p>
    
    <p>...</p>
    
    <p>Metropolis et al <sup>2</sup>, in the earliest days of scientific computing, introduced a simple algorithm that can be used to provide an efficient simulation of a collection of atoms in equilibrium at a given temperature.</p>
    
    <p>...</p>
    
    <p>Random numbers uniformly distributed in the interval (0,l) are a convenient means of implementing the random part of the algorithm.</p>
    
    <p>...</p>
    
    <p>Using the cost function in place of the energy and defining configurations by a set of parameters {<span class="math-container">$x_i$</span>}, it is straightforward with the Metropolis procedure to generate a population of configurations of a given optimization problem at some effective temperature. This temperature is simply a control parameter in the same units as the cost function. The simulated annealing process consists of first "melting" the system being optimized at a high effective temperature, then lowering the temperature by slow stages until the system "freezes" and no further changes occur.</p>
    
    <p>...</p>
    
    <p>Simulated annealing with Z-moves improved the random routing by 57 percent, averaging results for both x and y links.</p>
  </blockquote>
  
  <hr>
  
  <p><strong>References</strong></p>
  
  <p>[1] <a href="https://www.jstor.org/stable/1690046" rel="nofollow noreferrer"><em>Optimization by Simulated Annealing</em></a>, Science S. Kirkpatrick, C. D. Gelatt and M. P. Vecchi, Science New Series, Vol. 220, No. 4598, May 1983, pp. 671-680</p>
  
  <p>[2] N. Metropolis, A. Rosenbluth, M. Rosenbluth., A. Teller. E. Teller, J. Chem. Phys. 21. 1087 110511</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-29T08:34:42.700Z
Answers.LastActivityDate: 2018-12-29T20:12:10.363Z
Answers.LastEditDate: 2018-12-29T20:12:10.363Z
Answers.UserDisplayName: Douglas Daseeco
Answers.Body: <p>Simulated annealing is just one of the approaches for an <a href="https://en.wikipedia.org/wiki/Optimization_problem" rel="nofollow noreferrer">optimization problem</a>: </p>
  
  <ul>
  <li>Given a function f(<em>X</em>), you want to find an <em>X</em> where f(<em>X</em>) is optimal (has maximum or minimum value). </li>
  </ul>
  
  <p>Shaking (a methaphor for introducing a degree of randomness to annealing process) is used to prevent the algorithm from stopping prematurely, when only a sub-optimal solution (local minimum or local maximum) has been found.</p>
  
  <p>I've once used it for finding the optimal schedule of lessons for teacher. The optimization function took into consideration "time windows" between windows, so that teachers do not have to wait too much.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-12T14:48:28.750Z
Answers.LastActivityDate: 2018-12-12T14:54:12.190Z
Answers.LastEditDate: 2018-12-12T14:54:12.190Z
Answers.UserDisplayName: dzieciou
Answers.Body: <p><a href="http://www.persion.info/projects/antenna_annealing/" rel="nofollow noreferrer">http://www.persion.info/projects/antenna_annealing/</a></p>
  <p>Using simulated annealing to evolve ideal antennas.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-04T22:22:29.913Z
Answers.LastActivityDate: 2023-07-04T22:22:29.913Z
Answers.UserDisplayName: Rostislav Persion
Body: <p>In AIMA, 3rd Edition on Page 125, Simulated Annealing is described as:</p>
  
  <blockquote>
    <p>Hill-climbing algorithm that <em>never</em> makes “downhill” moves toward states with lower value (or higher cost) is guaranteed to be incomplete, because it can get stuck on a local maximum. In contrast, a purely random walk—that is, moving to a successor chosen uniformly at random from the set of successors—is complete but extremely inefficient. Therefore, it seems reasonable to try to combine hill climbing with a random walk in some way that yields both efficiency and completeness. Simulated annealing is such an algorithm. In metallurgy, <strong>annealing</strong> is the process used to temper or harden metals and glass by heating them to a high temperature and then gradually cooling them, thus allowing the material to reach a lowenergy crystalline state. To explain simulated annealing, we switch our point of view from hill climbing to <strong>gradient descent</strong> (i.e., minimizing cost) and imagine the task of getting a
    ping-pong ball into the deepest crevice in a bumpy surface. If we just let the ball roll, it will come to rest at a local minimum. If we shake the surface, we can bounce the ball out of the local minimum. The trick is to shake just hard enough to bounce the ball out of local minima but not hard enough to dislodge it from the global minimum. The simulated-annealing solution is to start by shaking hard (i.e., at a high temperature) and then gradually reduce the intensity of the shaking (i.e., lower the temperature)</p>
  </blockquote>
  
  <p>I know its about its example, but I just want more examples where Stimulated Annealing used in daily life </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-12T07:03:43.817Z
Comments.Text: Can you clarify which examples you already know so that answerers get a better idea of what other examples you might be looking for?
Comments.UserDisplayName: Peeyush Kushwaha
Tags: <search><applications><simulated-annealing>
Title: What are examples of daily life applications that use simulated annealing?
UserDisplayName: Iram Shah
ThreadText: # What are examples of daily life applications that use simulated annealing?
  
  (Asked by: username_0 on 2018-12-11)
  
  In AIMA, 3rd Edition on Page 125, Simulated Annealing is described as:
  
  > Hill-climbing algorithm that *never* makes “downhill” moves toward states with lower value (or higher cost) is guaranteed to be incomplete, because it can get stuck on a local maximum. In contrast, a purely random walk—that is, moving to a successor chosen uniformly at random from the set of successors—is complete but extremely inefficient. Therefore, it seems reasonable to try to combine hill climbing with a random walk in some way that yields both efficiency and completeness. Simulated annealing is such an algorithm. In metallurgy, **annealing** is the process used to temper or harden metals and glass by heating them to a high temperature and then gradually cooling them, thus allowing the material to reach a lowenergy crystalline state. To explain simulated annealing, we switch our point of view from hill climbing to **gradient descent** (i.e., minimizing cost) and imagine the task of getting a
  > ping-pong ball into the deepest crevice in a bumpy surface. If we just let the ball roll, it will come to rest at a local minimum. If we shake the surface, we can bounce the ball out of the local minimum. The trick is to shake just hard enough to bounce the ball out of local minima but not hard enough to dislodge it from the global minimum. The simulated-annealing solution is to start by shaking hard (i.e., at a high temperature) and then gradually reduce the intensity of the shaking (i.e., lower the temperature)
  
  I know its about its example, but I just want more examples where Stimulated Annealing used in daily life
  
  **Tags:** search, applications, simulated-annealing
  
  > **Comments:**
  > **username_1**: Can you clarify which examples you already know so that answerers get a better idea of what other examples you might be looking for?  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2018-12-29. Score: 2
  
  **Examples of simulated annealing in the 2010s**
  
  These are a few examples.
  
  * [*Optimised simulated annealing for Ising spin glasses*](https://arxiv.org/pdf/1401.1084.pdf), 2015, S.V. Isakov et. al.
  * [*A parallel simulated annealing method for the vehicle routing problem with simultaneous pickup–delivery and time windows*](https://www.researchgate.net/profile/Chao_Wang213/publication/272753635_A_parallel_simulated_annealing_method_for_the_vehicle_routing_problem_with_simultaneous_pickup-delivery_and_time_windows/links/5ac6e5cea6fdcc8bfc7f86f9/A-parallel-simulated-annealing-method-for-the-vehicle-routing-problem-with-simultaneous-pickup-delivery-and-time-windows.pdf), 2014, Chao Wang et. al.
  * [*Feature-based tuning of simulated annealing applied to the curriculum-based course timetabling problem*](https://arxiv.org/pdf/1409.7186.pdf), 2015, Ruggero Bellio et. al.
  
  **Analysis of Quote in the Question**
  
  The quote in the question is from page 125 of *Artificial Intelligence: A Modern Approach*, Stuart Russell and Peter Norvig, 2010, 3rd Edition.
  
  The quote begins with the statement, "A hill-climbing algorithm that never makes 'downhill' moves toward states with lower value (or higher cost) is guaranteed to be incomplete," which is not strictly true. The stated guarantee has at least two important exceptions.
  
  * The class of hills being climbed have only one peak
  * The search is executed using parallel computing architecture scaled such that search granularity includes no more than one peak per processing unit
  
  Describing simulated annealing using the analogy of combining inverted hill climbing and random walk, as Stuart and Norvig explains it, is not as clear and technically accurate as the original analogy. It is often better to find original sources of ideas and read them than to read simplified explanations. The original ideas may be just as easy or easier to understand than the textbook paraphrases (which is why the best textbooks simply quote the originating authors).
  
  **Source of the Term**
  
  The original algorithm termed *simulated annealing* is introduced in *Optimization by Simulated Annealing*, Kirkpatrick et. al.1, which may not qualify as one one explicitly employed by AI researchers or practitioners on a daily basis. Simulating the atomic motion of metals during annealing is the first of several approaches to injecting pseudo-random perturbations into convergence mechanisms. An approximation of a ${\chi}^2$ distribution with $k$ degrees of freedom is a more progressive injection source.
  
  These approaches share the common goal of avoiding the mistaking of a local minimum in loss surface as its global minimum. Such mistaken conclusion causes a failure to achieve an optimal learning state according to the criteria the loss function represents.
  
  As can be seen in the below excerpts, the original article is a good read and sets a foundation of understanding. Such a foundation will assist in understanding all methods used avoid local minima using stochastic injection.
  
  > Iterative improvement consists of a search in this coordinate space for
  > rearrangement steps which lead downhill. Since this search usually gets stuck in a local but not a global optimum, it is customary to carry out the process several times, starting from different randomly generated configurations, and save the best result.
  >
  > ...
  >
  > Metropolis et al 2, in the earliest days of scientific computing, introduced a simple algorithm that can be used to provide an efficient simulation of a collection of atoms in equilibrium at a given temperature.
  >
  > ...
  >
  > Random numbers uniformly distributed in the interval (0,l) are a convenient means of implementing the random part of the algorithm.
  >
  > ...
  >
  > Using the cost function in place of the energy and defining configurations by a set of parameters {$x\_i$}, it is straightforward with the Metropolis procedure to generate a population of configurations of a given optimization problem at some effective temperature. This temperature is simply a control parameter in the same units as the cost function. The simulated annealing process consists of first "melting" the system being optimized at a high effective temperature, then lowering the temperature by slow stages until the system "freezes" and no further changes occur.
  >
  > ...
  >
  > Simulated annealing with Z-moves improved the random routing by 57 percent, averaging results for both x and y links.
  
  ---
  
  **References**
  
  [1] [*Optimization by Simulated Annealing*](https://www.jstor.org/stable/1690046), Science S. Kirkpatrick, C. D. Gelatt and M. P. Vecchi, Science New Series, Vol. 220, No. 4598, May 1983, pp. 671-680
  
  [2] N. Metropolis, A. Rosenbluth, M. Rosenbluth., A. Teller. E. Teller, J. Chem. Phys. 21. 1087 110511
  
  
  ---
  
  ### Answer by username_3 on 2018-12-12. Score: 1
  
  Simulated annealing is just one of the approaches for an [optimization problem](https://en.wikipedia.org/wiki/Optimization_problem):
  
  * Given a function f(*X*), you want to find an *X* where f(*X*) is optimal (has maximum or minimum value).
  
  Shaking (a methaphor for introducing a degree of randomness to annealing process) is used to prevent the algorithm from stopping prematurely, when only a sub-optimal solution (local minimum or local maximum) has been found.
  
  I've once used it for finding the optimal schedule of lessons for teacher. The optimization function took into consideration "time windows" between windows, so that teachers do not have to wait too much.
  
  
  ---
  
  ### Answer by username_4 on 2023-07-04. Score: 0
  
  <http://www.username_4.info/projects/antenna_annealing/>
  
  Using simulated annealing to evolve ideal antennas.
  
  
  ---
  
  