Scipy 生成线性时不变系统根轨迹的函数
Scipy function that generate Root locus of Linear Time Invariant Systems
有人知道是否有一些 Scipy 函数可以绘制 LTI 的根轨迹吗?我在包裹 scipy.signal.
中没有找到任何东西
谢谢。
是的。您可以使用 Richard Murray 等人开发的 python-control
控制系统库。它使用类似 matlab 的语法,还具有 matlab 兼容性选项。
import control as cnt
G = cnt.tf([1,-2,-3],[1,2,1])
cnt.rlocus(G);
会给
注意最后的分号是为了抑制终端上的输出。我不知道他们为什么选择退出这种行为。
无耻插件:我也在开发harold
library in a rather orthogonal direction that is away from matlab-like syntax for hopefully a more intuitive control engineering tool. The alpha release is now on PyPI
and the documentation is on ReadTheDocs
(命令参考见模块索引 link)。
在它成为一个合适的库之前还有很多工作要做。从积极的方面来说,您不需要任何明确的 FORTRAN 库或外部工具。
此外,harold
在某些地方使用了比 matlab 更先进的算法,这基本上是我一直在测试的。
我想借此机会鼓励任何 contributions/bug reports/insulting emails/feature 请求。
有人知道是否有一些 Scipy 函数可以绘制 LTI 的根轨迹吗?我在包裹 scipy.signal.
中没有找到任何东西谢谢。
是的。您可以使用 Richard Murray 等人开发的 python-control
控制系统库。它使用类似 matlab 的语法,还具有 matlab 兼容性选项。
import control as cnt
G = cnt.tf([1,-2,-3],[1,2,1])
cnt.rlocus(G);
会给
注意最后的分号是为了抑制终端上的输出。我不知道他们为什么选择退出这种行为。
无耻插件:我也在开发harold
library in a rather orthogonal direction that is away from matlab-like syntax for hopefully a more intuitive control engineering tool. The alpha release is now on PyPI
and the documentation is on ReadTheDocs
(命令参考见模块索引 link)。
在它成为一个合适的库之前还有很多工作要做。从积极的方面来说,您不需要任何明确的 FORTRAN 库或外部工具。
此外,harold
在某些地方使用了比 matlab 更先进的算法,这基本上是我一直在测试的。
我想借此机会鼓励任何 contributions/bug reports/insulting emails/feature 请求。