使用优化方法/求解器矩阵跟踪最小化问题

发布于 2025-02-10 15:15:26 字数 85 浏览 3 评论 0原文

在神秘或scipy中是否有任何优化方法/求解器。在矩阵域中解决问题的优化库。换句话说,是否有任何优化方法/求解器可以接受矩阵作为参数并最大程度地减少其跟踪?

Is there any optimization method/solver in mystic or scipy.optimization library that solves the problem in the matrix domain. In other words, is there any optimization method/solver that accepts matrix as an argument and minimizes its trace?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

╭ゆ眷念 2025-02-17 15:15:26

矩阵的痕迹是:

tr(A) = sum(i, a[i,i])

因此,取决于模型的其余部分,(几乎)任何求解器都允许您使用这样的目标。它是线性的,并且能够轻松且举止良好。这是您将看到的最佳目标。

The trace of a matrix is:

tr(A) = sum(i, a[i,i])

So, depending on the rest of the model, (almost) any solver will allow you to use an objective like this. It is linear and is as easy and well-behaved as it gets. It is about the best objective you will ever see.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文