Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 1.07 KB

Simulated-Annealing.md

File metadata and controls

18 lines (15 loc) · 1.07 KB

SIMULATED-ANNEALING

AIMA3e

function SIMULATED-ANNEALING(problem,schedule) returns a solution state
inputs: problem, a problem
    schedule, a mapping from time to "temperature"

current ← MAKE-NODE(problem.INITIAL-STATE)
for t = 1 todo
   Tschedule(t)
   if T = 0 then return current
   next ← a randomly selected successor of current
   ΔEnext.VALUE - current.VALUE
   if ΔE > 0 then currentnext
   else currentnext only with probability eΔE/T


Figure ?? The simulated annealing algorithm, a version of stochastic hill climbing where some downhill moves are allowed. Downhill moves are accepted readily early in the annealing schedule and then less often as time goes on. The schedule input determines the value of the temperature T as a function of time.