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