Mercurial > hg > smallbox
comparison util/SMALL_solve.m @ 178:4ea4badb2266 danieleb
added ramirez dl (to be completed) and MOCOD dictionary update
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Thu, 17 Nov 2011 11:22:17 +0000 |
parents | 23763c5fbda5 f42aa8bcb82f |
children | fd0b5d36f6ad |
comparison
equal
deleted
inserted
replaced
177:714fa7b8c1ad | 178:4ea4badb2266 |
---|---|
1 function solver = SMALL_solve(Problem, solver) | 1 function solver = SMALL_solve(Problem, solver) |
2 %% SMALL sparse solver | 2 %% SMALL sparse solver caller function |
3 % | 3 % |
4 % Function gets as input SMALL structure that contains SPARCO problem to | 4 % Function gets as input SMALL structure that contains SPARCO problem to |
5 % be solved, name of the toolbox and solver, and parameters file for | 5 % be solved, name of the toolbox and solver, and parameters file for |
6 % particular solver. | 6 % particular solver. |
7 % | 7 % |
86 A = opToMatrix(Problem.A, 1); | 86 A = opToMatrix(Problem.A, 1); |
87 end | 87 end |
88 [y, numiter, time, y_path] = wrapper_ALPS_toolbox(b, A, solver.param); | 88 [y, numiter, time, y_path] = wrapper_ALPS_toolbox(b, A, solver.param); |
89 elseif (strcmpi(solver.toolbox, 'MMbox')) | 89 elseif (strcmpi(solver.toolbox, 'MMbox')) |
90 if ~isa(Problem.A,'float') | 90 if ~isa(Problem.A,'float') |
91 % ALPS does not accept implicit dictionary definition | 91 % MMbox does not accept implicit dictionary definition |
92 A = opToMatrix(Problem.A, 1); | 92 A = opToMatrix(Problem.A, 1); |
93 end | 93 end |
94 | 94 |
95 [y, cost] = wrapper_mm_solver(b, A, solver.param); | 95 [y, cost] = wrapper_mm_solver(b, A, solver.param); |
96 | 96 |