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