Linear Least Squares With 2 Inequality Constraints

2 visualizaciones (últimos 30 días)
Royi Avital
Royi Avital el 20 de Ag. de 2015
Comentada: John D'Errico el 20 de Ag. de 2015
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 comentario
John D'Errico
John D'Errico el 20 de Ag. de 2015
It simply is not true that lsqlin only allows one constraint. READ THE HELP.

Iniciar sesión para comentar.

Respuesta aceptada

Royi Avital
Royi Avital el 20 de Ag. de 2015
I created a solution.
It can be found here:

Más respuestas (1)

Torsten
Torsten el 20 de Ag. de 2015
help lsqlin
Best wishes
Torsten.
  3 comentarios
Torsten
Torsten el 20 de Ag. de 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
Royi Avital el 20 de Ag. de 2015
This is exactly what I did. But I will mark your question.
Thank You.

Iniciar sesión para comentar.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by