% Dianne P. O'Leary Solution to "One, Two, Too Many"
%
% This solves Problem 1a of the homework (although it does not
% make the graph).

 [xmin,fmin,nmin] = myfmin(@myf,0,7,500)

% This solves Problem 1b of the homework.

 [xmin,fmin,nmin] = myfminL(@myf,0,7,98.5,500)   % 11/2008

% This solves Problem 2 of the homework.

 T = 100;
 alpha = .99;
 epsT = 1.e-3;

 [xmin,fmin,nmin] = sim_anneal(@myf,0,7,T,alpha,epsT)
