필터 지우기
필터 지우기

least-squares solutions of linear systems

조회 수: 2 (최근 30일)
minibela
minibela 2011년 10월 7일
답변: Matt J 2017년 10월 12일
Hello, I'm trying to find a way to determine what elements of a least-squares solution may come out as negative numbers. My linear system A*x = b has h = [h1, h2,..., h8] as the minimun-norm l.s.s. and h6 <0, h7 <0. I would like to know what is the maximum value of h6 (and h7) such that h is still l.s.s but not min.norm. If I transform the system into A1*y = b1 with y = x - eps, and use lsqnonneg(A1,b1), then I get g = [g1, g2,..., g8] having g6 always equal to that small non-negative eps. That makes me think the constraint is artificial and no l.s.s. of A*x = b will ever have all elements > 0. Could I prove this mathematically? Could I say without solving the system "least-squares solution has exactly 2 negative elements"? Thanks in advance.

답변 (1개)

Matt J
Matt J 2017년 10월 12일
Minimize
-h(6) %or h(7)
subject to the optimality constraint,
A.'*(A*x-b)=0

카테고리

Help CenterFile Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by