OpenMDAO - 有关周期的信息

发布于 2025-01-10 23:41:47 字数 76 浏览 1 评论 0原文

在 OpenMDAO 中,有什么方法可以分析耦合模型(包含多个循环和子循环)中非线性求解器的执行情况,例如每个循环内的迭代次数和执行时间?

In OpenMDAO, is there any way to get the analytics about the execution of the nonlinear solvers within a coupled model (containing multiple cycles and subcycles), such as the number of iterations within each of the cycles, and execution time?

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

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

发布评论

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

评论(1

梦毁影碎の 2025-01-17 23:41:47

尽管没有特定的功能可以获取这些确切的数据,但您应该能够从案例记录数据中获取所需的信息,其中包括迭代计数和时间戳。因此,您必须对求解器特定运行的第一个/最后一个案例进行一些分析才能计算运行时间。迭代计数应该非常严格。

这个问题似乎与另一个问题密切相关,最近发布了确实发现了 OpenMDAO 中的一个错误。 (问题 #2453)。在修复该错误之前,您需要使用案例名称来区分哪些案例属于哪些周期,因为您当前只能将记录器添加到组件/组中,而不能添加到嵌套求解器本身。但案例的命名仍然应该允许您提取所需的数据。

Though there is no specific functionality to get this exact data, you should be able to get the information you need from case record data which includes iteration counts and time-stamps. So you'd have to do a bit of analysis on the first/last case of a specific run of a solver to compute the run times. Iteration counts should be very strait forward.

This question seems closely related to another one, recently posted which did identify a bug in OpenMDAO. (Issue #2453). Until that bug is fixed, you'll need to use the case names to separate out which cases belong to which cycles, since you can only currently add the recorders to the components/groups and not to the nested solvers themselves. But the naming of the cases should still allow you to pull the data you need out.

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