在MATLAB中xA = b的约束线性最小二乘 [英] Constrained linear least-squares for xA=b in matlab

查看:478
本文介绍了在MATLAB中xA = b的约束线性最小二乘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用0<=x约束对x求解xA=b.

我发现了 lsqnonneg

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

如何用非负x约束求解xA=b?

推荐答案

正如 David 所说,它很容易显示那

As David commented, it is straightforward to show that

因此您可以使用标准方法来解决 A' b'的问题,然后转置答案.

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

这篇关于在MATLAB中xA = b的约束线性最小二乘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆