Constrained linear least-squares for xA=b in matlab

本秂侑毒 提交于 2020-01-11 13:39:09

问题


I want to solve xA=b with constraint 0<=x for x.

I found functions like lsqnonneg and lsqlin which solves for Ax=b. However, couldn't find a good way to solve for xA=b.

How can I solve xA=b with non-negative x constraint?


回答1:


As David commented, it is straightforward to show that

so you can use standard methods to solve the problem with A' and b' and then transpose the answer.



来源:https://stackoverflow.com/questions/26600699/constrained-linear-least-squares-for-xa-b-in-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!