xref: /petsc/src/tao/leastsquares/tutorials/matlab/TestingInitialize.m (revision 6a98f8dc3f2c9149905a87dc2e9d0fedaf64e09a)
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