clear; close all;
%
% Main macro for testing the sample optimization routine grad_methd.
% TK 3.11.02
%
n = 2;
u0 = zeros(n,1);
% Create a structure for options to be feeded for the optimizer.
options.maxits = 10;
options.tol = 1e-5;
options.stepsize = 2e-1;
options.GradObj = 'off';
[u,g,f_vals] = grad_method('exafun',u0,options);
u
plot(0:length(f_vals)-1,f_vals,'*--')
% plot(0:length(f_vals)-1,f_vals,'-@') %This form was used in Octave
