Linear Least Squares With 2 Inequality Constraints

6 次查看(过去 30 天)
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.

采纳的回答

Royi Avital
Royi Avital 2015-8-20
I created a solution.
It can be found here:

更多回答(1 个)

Torsten
Torsten 2015-8-20
help lsqlin
Best wishes
Torsten.
  3 个评论
Torsten
Torsten 2015-8-20
[-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 2015-8-20
This is exactly what I did. But I will mark your question.
Thank You.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Linear Least Squares 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by