xref: /petsc/src/tao/leastsquares/tutorials/matlab/TestingInitialize.m (revision cac3c07dbc4e95423e22cb699bb64807a71d0bfe)
1% Sample calling syntax for testing taopounders and comparing to fminsearch
2% TestingInitialize is called once before solving any instances
3
4% Make the test problem accessible to the MATLAB session and load the data matrix
5addpath('more_wild_probs/')
6load dfo.dat
7
8% Allocate global vectors to store the iterates generated by the algorithms
9global nfev fvals fvecs X_hist
10
11% Initialize the problems that are being solved and the storage of the results
12to_solve = 1:53;
13Results = cell(1,length(to_solve));
14
15% Initialize the constant factor for the number of allowable function evaluations
16nf_const = 10;
17
18