Linear Least Squares With 2 Inequality Constraints
Mostra commenti meno recenti
Hello,
I would like to know how can I solve the following Linear Least Squares problem:
arg min(x) (Ax - b)'(Ax - b)
s.t.
Ax >= c
Ax <= d
Is there a way to it in MATLAB?
The Constrained Linear Least Squares in MATLAB only allows one inequality.
Thank You.
1 Commento
John D'Errico
il 20 Ago 2015
It simply is not true that lsqlin only allows one constraint. READ THE HELP.
Risposta accettata
Più risposte (1)
Torsten
il 20 Ago 2015
1 voto
help lsqlin
Best wishes
Torsten.
3 Commenti
Royi Avital
il 20 Ago 2015
Torsten
il 20 Ago 2015
[-A ; A]*x <= [-c ; d]
So choose the matrix in lsqlin as [-A ; A] and the right-hand side vector as [-c ; d].
Best wishes
Torsten.
Royi Avital
il 20 Ago 2015
Categorie
Scopri di più su Linear Least Squares in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!