arg min for Optimization problem
Afficher commentaires plus anciens
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 commentaire
Murali Krishna AG
le 27 Nov 2020
Réponses (2)
David Hill
le 27 Nov 2020
norm(X-A.*w-B.*v,-inv);%I assume you want element wise multiplication
1 commentaire
Murali Krishna AG
le 27 Nov 2020
Ameer Hamza
le 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.
Catégories
En savoir plus sur Nonlinear Optimization dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!