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 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