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