Can Matlab do L1 minimization?
Show older comments
Hi, I'm trying to implement face recognition algorithm based on sparse representation. It has to do L1 minimization for optimization.
I am using linprog function for L1 minimization, but i'm not sure if matlab actually can solve this or it just gives an approximate solution.
I'm trying to find solution after L1 minimization of x using the constraint Aeq * x = y. lb is the lower bound (set to be zeros)
x1 = linprog(f,[],[],Aeq,y,lb,[],[],[]);
This is actually giving me good results. But I just want to confirm if this is the actual L1 minimization solution or just an approximate solution.
Accepted Answer
More Answers (1)
Geoff
on 30 Apr 2012
It will do its best to minimise the residual errors. If a real solution exists, it will converge on that. Yes, it's 'approximate' in the sense that there is a termination tolerance value to control how many decimal places you care about. If you want it more exact, set the TolFun option using optimset, and pass your options into linprog.
opts = optimset('linprog');
set( opts, 'TolFun', 1e-12 );
x1 = linprog( f, [], [], Aeq, y, lb, [], [], opts );
2 Comments
Rex
on 30 Apr 2012
SAMVIT MAHARAJ
on 18 Mar 2015
Hello, I am also working on the same program. Can you tell me how can I find the recognition rate?
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!