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), 0)
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), 0)
def exp_schedule ( k = 20 , lam = 0.005 , limit = 100 ) : return lambda t : if_ ( t < limit , k * math . exp ( - lam * t ) , 0 )
One possible schedule function for simulated annealing
One possible schedule function for simulated annealing