code: def exp_schedule(k=20, lam=0.005, limit=100):
      "One possible schedule function for simulated annealing"
      return lambda t: if_(t < limit, k * math.exp(-lam * t), 0f exp_schedule(k=20, lam=0.005, limit=100):
      "One possible schedule function for simulated annealing"
      return lambda t: if_(t < limit, k * math.exp(-lam * t), 0)
docs: One possible schedule function for simulated annealing