Linear Least Squares With 2 Inequality Constraints

4 ビュー (過去 30 日間)
Royi Avital
Royi Avital 2015 年 8 月 20 日
コメント済み: John D'Errico 2015 年 8 月 20 日
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 件のコメント
John D'Errico
John D'Errico 2015 年 8 月 20 日
It simply is not true that lsqlin only allows one constraint. READ THE HELP.

サインインしてコメントする。

採用された回答

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 Center および File ExchangeLinear Least Squares についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by