I got it . but i tried to use log_temperature before and it doesn’t work .
I mean i tried it in this way
load("simulated_annealing.jl")
load("../rng.jl")
function rosenbrock(x, y)
(1 - x)^2 + 100(y - x^2)^2
end
function neighbors(z)
[rand_uniform(z[1] - 1, z[1] + 1), rand_uniform(z[2] - 1, z[2] + 1)]
end
srand(1)
solution = simulated_annealing(z -> rosenbrock(z[1], z[2]),
[0, 0],
neighbors,
log_temperature,
10000,
true,
false)