Revisiting the Simulated Annealing Algorithm from a Teaching Perspective

  • Paulo B. de Moura OliveiraEmail author
  • Eduardo J. Solteiro Pires
  • Paulo Novais
Conference paper
Part of the Advances in Intelligent Systems and Computing book series (AISC, volume 527)


Hill climbing and simulated annealing are two fundamental search techniques integrating most artificial intelligence and machine learning courses curricula. These techniques serve as introduction to stochastic and probabilistic based metaheuristics. Simulated annealing can be considered a hill-climbing variant with a probabilistic decision. While simulated annealing is conceptually a simple algorithm, in practice it can be difficult to parameterize. In order to promote a good simulated annealing algorithm perception by students, a simulation experiment is reported here. Key implementation issues are addressed, both for minimization and maximization problems. Simulation results are presented.


Simulated annealing Meta-heuristics Artificial intelligence education 


  1. 1.
    Russel, S., Norvig, P.: Artificial Intelligence: A Modern Approach, 3rd edn. Pearson Education, Upper Saddle River (2014)Google Scholar
  2. 2.
    Metropolis, N., Rosenbluth, A.W., Rosenbluth, M.N., Teller, A.H., Teller, E.: Equation of state calculations by fast computing machines. J. Chem. Phys. 21(6), 1087–1092 (1953)CrossRefGoogle Scholar
  3. 3.
    Kirkpatrick, S., Gelatt, C.D., Vecchi, M.P.: Optimization by simulated annealing. Science 220, 671–680 (1983)MathSciNetCrossRefGoogle Scholar
  4. 4.
    Nandhini, M., Kanmani, S.: A survey of simulated annealing methodology for university course timetabling. Int. J. Recent Trends Eng. 1(2), 177–178 (2009)Google Scholar
  5. 5.
    Wang, C., Mua, D., Zhao, F., Sutherland, J.W.: A parallel simulated annealing method for the vehicle routing problem with simultaneous pickup–delivery and time windows. Comput. Ind. Eng. 83, 111–122 (2015)CrossRefGoogle Scholar
  6. 6.
    Wang, S., Zuo, X., Liu, X., Zhao, X., Li, J.: Solving dynamic double row layout problem via combining simulated annealing and mathematical programming. Appl. Soft Comput. 37, 303–310 (2015)CrossRefGoogle Scholar
  7. 7.
    Behnck, L.P., Doering, D., Pereira, C.P., Rettberg, A.: A modified simulated annealing algorithm for SUAVs path planning. IFAC-PapersOnLine 48(10), 63–68 (2015)CrossRefGoogle Scholar
  8. 8.
    Ingber, L.: Very fast simulated re-annealing. Mathl. Comput. Model. 2(8), 967–973 (1989)MathSciNetCrossRefGoogle Scholar
  9. 9.
    Ingber, L.: Practice versus theory. Mathl. Comput. Model. 18(11), 29–57 (1993)MathSciNetCrossRefGoogle Scholar
  10. 10.
    Mirhosseini, S.H., Yarmohamadi, H., Kabudian, J.: MiGSA: a new simulated annealing algorithm with mixture distribution as generating function. In: 4th International Conference on Computer and Knowledge Engineering, pp. 455–461. IEEE (2014)Google Scholar
  11. 11.
    Debudaj-Grabysz, A., Czech, Z.J.: Theoretical and practical issues of parallel simulated annealing. In: Wyrzykowski, R., Dongarra, J., Karczewski, K., Wasniewski, J. (eds.) PPAM 2007. LNCS, vol. 4967, pp. 189–198. Springer, Heidelberg (2008)CrossRefGoogle Scholar
  12. 12.
    Misevičius, A.: A modified simulated annealing algorithm for the quadratic assignment problem. Informatica 14(4), 497–514 (2003)MathSciNetzbMATHGoogle Scholar
  13. 13.
    Ali, M.M., Törn, A., Viitanen, S.: A direct search variant of the simulated annealing algorithm for optimization involving continuous variables. Comput. Oper. Res. 29, 87–102 (2002)MathSciNetCrossRefGoogle Scholar
  14. 14.
    Park, M.-W., Kim, Y.-D.: A systematic procedure for setting parameter in simulated annealing algorithms. Comput. Ops. Res. 25(3), 207–217 (1998). ElsevierCrossRefGoogle Scholar
  15. 15.
    Ameur, W.B.: Computing the initial temperature of simulated annealing. Comput. Optim. Appl. 29, 369–385 (2004). Kluwer Academic PublishersMathSciNetCrossRefGoogle Scholar
  16. 16.
    Shakouri, H.G., Shojaee, K., Behnam, M.T.: Investigation on the choice of the initial temperature in the simulated annealing: a Mushy State SA for TSP. In: 17th IEEE Mediterranean Conference on Control & Automation, Thessaloniki, Greece, pp. 1050–1055, 24–26 June 2009Google Scholar
  17. 17.
    Nourani, Y., Andresen, B.: A comparison of simulated annealing cooling strategies. J. Phys. A: Math. Gen. 31, 8373–8385 (1998)CrossRefGoogle Scholar
  18. 18.
    Lee, C.-Y., Lee, D.: Determination of initial temperature in fast simulate annealing. Comput. Optim. Appl 58, 503–522 (2014)MathSciNetCrossRefGoogle Scholar

Copyright information

© Springer International Publishing AG 2017

Open Access This chapter is licensed under the terms of the Creative Commons Attribution-NonCommercial 2.5 International License (, which permits any noncommercial use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.

The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.

Authors and Affiliations

  • Paulo B. de Moura Oliveira
    • 1
    Email author
  • Eduardo J. Solteiro Pires
    • 1
  • Paulo Novais
    • 2
  1. 1.Department of Engineering, School of Sciences and TechnologyINESC TEC – INESC Technology and ScienceVila RealPortugal
  2. 2.Centro ALGORITMI/Departamento de InformáticaUniversidade do MinhoBragaPortugal

Personalised recommendations