Mercurial > hg > smallbox
comparison examples/SMALL_solver_test.m @ 20:ce03373b3761
(none)
author | idamnjanovic |
---|---|
date | Thu, 15 Apr 2010 10:15:13 +0000 |
parents | 2d7d8736ce6c |
children | cbf3521c25eb |
comparison
equal
deleted
inserted
replaced
19:79e1d62f0115 | 20:ce03373b3761 |
---|---|
44 % | 44 % |
45 % SPARCO Copyright 2008, Ewout van den Berg and Michael P. Friedlander | 45 % SPARCO Copyright 2008, Ewout van den Berg and Michael P. Friedlander |
46 % http://www.cs.ubc.ca/labs/scl/sparco | 46 % http://www.cs.ubc.ca/labs/scl/sparco |
47 % $Id: exGPSR.m 1040 2008-06-26 20:29:02Z ewout78 $ | 47 % $Id: exGPSR.m 1040 2008-06-26 20:29:02Z ewout78 $ |
48 | 48 |
49 fprintf('\n\nExample test of SMALL solver against their counterparts on Sparco problems.\n\n'); | 49 fprintf('\n\nExample test of SMALL solvers against their counterparts on Sparco problems.\n\n'); |
50 | 50 |
51 %% | 51 %% |
52 % Generate SPARCO problem | 52 % Generate SPARCO problem |
53 | 53 |
54 | 54 |
55 SMALL.Problem = generateProblem(6, 'P', 6, 'm', 270,'n',1024, 'show'); | 55 SMALL.Problem = generateProblem(6, 'P', 6, 'm', 270,'n',1024, 'show'); |
56 %% | 56 %% |
57 i=1; | 57 i=1; |
58 %% | 58 % %% |
59 % SMALL Conjugate Gradient test | 59 % % SMALL Conjugate Gradient test |
60 SMALL.solver(i)=SMALL_init_solver; | 60 % SMALL.solver(i)=SMALL_init_solver; |
61 SMALL.solver(i).toolbox='SMALL'; | 61 % SMALL.solver(i).toolbox='SMALL'; |
62 SMALL.solver(i).name='SMALL_cgp'; | 62 % SMALL.solver(i).name='SMALL_cgp'; |
63 | 63 % |
64 % In the following string all parameters except matrix, measurement vector | 64 % % In the following string all parameters except matrix, measurement vector |
65 % and size of solution need to be specified. If you are not sure which | 65 % % and size of solution need to be specified. If you are not sure which |
66 % parameters are needed for particular solver type "help <Solver name>" in | 66 % % parameters are needed for particular solver type "help <Solver name>" in |
67 % MATLAB command line | 67 % % MATLAB command line |
68 | 68 % |
69 SMALL.solver(i).param='200, 1e-14'; | 69 % SMALL.solver(i).param='200, 1e-14'; |
70 | 70 % |
71 SMALL.solver(i)=SMALL_solve(SMALL.Problem,SMALL.solver(i)); | 71 % SMALL.solver(i)=SMALL_solve(SMALL.Problem,SMALL.solver(i)); |
72 | 72 % |
73 | 73 % |
74 i=i+1; | 74 % i=i+1; |
75 %% | 75 %% |
76 % SMALL OMP with Cholesky update test | 76 % SMALL OMP with Cholesky update test |
77 SMALL.solver(i)=SMALL_init_solver; | 77 SMALL.solver(i)=SMALL_init_solver; |
78 SMALL.solver(i).toolbox='SMALL'; | 78 SMALL.solver(i).toolbox='SMALL'; |
79 SMALL.solver(i).name='SMALL_chol'; | 79 SMALL.solver(i).name='SMALL_chol'; |