comparison util/SMALL_solve.m @ 161:f42aa8bcb82f ivand_dev

debug and clean the SMALLbox Problems code
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Wed, 31 Aug 2011 12:02:19 +0100
parents b14209313ba4
children 4ea4badb2266 751fa3bddd30
comparison
equal deleted inserted replaced
155:b14209313ba4 161:f42aa8bcb82f
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