about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/BNT/learning/compute_cooling_schedule.m
blob: 397c2f8cbf13b18c4bc07403a8ab608815345766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function temp_schedule = compute_cooling_schedule(init_temp, final_temp, anneal_rate)

temp_schedule = [];
i = 1;
temp_schedule(i)=init_temp;
while temp_schedule(i) > final_temp
  i = i + 1;
  temp_schedule(i)=temp_schedule(i-1)*anneal_rate;
end