# HG changeset patch # User idamnjanovic # Date 1300117264 0 # Node ID 83de4ea524df58516b5202b81bf1ffebad30ec4a # Parent 6416fc12f2b8b1e8e86f45473f300163b6889a3e diff -r 6416fc12f2b8 -r 83de4ea524df examples/SMALL_solver_test.m --- a/examples/SMALL_solver_test.m Mon Mar 14 15:35:24 2011 +0000 +++ b/examples/SMALL_solver_test.m Mon Mar 14 15:41:04 2011 +0000 @@ -57,7 +57,7 @@ %% % Generate SPARCO problem - +clear SMALL.Problem = generateProblem(6, 'P', 6, 'm', 270,'n',1024, 'show'); %% @@ -80,10 +80,10 @@ % % i=i+1; %% -% SMALL OMP with Cholesky update test +% SMALL Conjugate Gradient test SMALL.solver(i)=SMALL_init_solver; SMALL.solver(i).toolbox='SMALL'; -SMALL.solver(i).name='SMALL_chol'; +SMALL.solver(i).name='SMALL_cgp'; % In the following string all parameters except matrix, measurement vector % and size of solution need to be specified. If you are not sure which @@ -92,9 +92,11 @@ SMALL.solver(i).param='200, 1e-14'; -SMALL.solver(i)=SMALL_solve(SMALL.Problem, SMALL.solver(i)); +SMALL.solver(i)=SMALL_solve(SMALL.Problem,SMALL.solver(i)); + i=i+1; + %% % SolveOMP from SparseLab test @@ -114,6 +116,23 @@ i=i+1; %% +% SMALL OMP with Cholesky update test +SMALL.solver(i)=SMALL_init_solver; +SMALL.solver(i).toolbox='SMALL'; +SMALL.solver(i).name='SMALL_chol'; + +% In the following string all parameters except matrix, measurement vector +% and size of solution need to be specified. If you are not sure which +% parameters are needed for particular solver type "help " in +% MATLAB command line + +SMALL.solver(i).param='200, 1e-14'; + +SMALL.solver(i)=SMALL_solve(SMALL.Problem, SMALL.solver(i)); + +i=i+1; + +%% % greed_pcgp from Sparsify test SMALL.solver(i)=SMALL_init_solver;