If a final_temp is not specified, set the final temp to be the same as the initial temperature and do a run at constant temperature.
If a final_temp is not specified, set the final temp to be the same as the initial temperature and do a run at constant temperature.
If final_temp is lower than initial temperature, we will do simulated annealing.
If final_temp is lower than initial temperature, we will do simulated annealing.
<<<<<<< HEAD
Adaptive step sizes have been removed. They might come back later, but they made the main loop hard to read and the aim is just to provide a model for teaching.
=======
foutname is where a csv file will be written with values for plotting.
foutname is where a csv file will be written with values for plotting.
xpltname is where a png file will be written with a plot of coordinates.
xpltname is where a png file will be written with a plot of coordinates.
...
@@ -76,6 +73,5 @@ which is
...
@@ -76,6 +73,5 @@ which is
So if you want to plot the function value as a function of step, you would plot column 1 on the x-axis and column 3 on the y-axis. To plot the coordinates in the example above, you would plot columns 4, 5 and 6 on the y-axis.
So if you want to plot the function value as a function of step, you would plot column 1 on the x-axis and column 3 on the y-axis. To plot the coordinates in the example above, you would plot columns 4, 5 and 6 on the y-axis.