arg min for Optimization problem
Show older comments
u=argmin{||X-A*w-B*v||^2}
Inputs : A,B,X,w,v
outputs:u which contain optimized vector of w,v
how to write code for this.Please help me
1 Comment
Murali Krishna AG
on 27 Nov 2020
Answers (2)
David Hill
on 27 Nov 2020
norm(X-A.*w-B.*v,-inv);%I assume you want element wise multiplication
1 Comment
Murali Krishna AG
on 27 Nov 2020
Ameer Hamza
on 27 Nov 2020
0 votes
You can use fminunc(): https://www.mathworks.com/help/optim/ug/fminunc.html or fmincon():https://www.mathworks.com/help/optim/ug/fmincon.html to find the optimal w and v.
Categories
Find more on Nonlinear Optimization 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!