|(38 intermediate revisions by the same user not shown)|
This page collects some notes on a control systems library for Python. The plan is to create an alternative to the MATLAB Control System Toolbox™ that can be used in courses and for research. This page collects information about the toolbox, in preparation for actually writing some code. If you stumble across this page and know of a similar package or would like to contribute, let me know.
page . The is the that the package.
* 23 May 09: really basic functionality working (Bode and Nyquist plots of transfer functions)
* 24 May 09: looking around for open source control computations - [http:// www. slicot.org/ slicot] looks like a candidate
== Architecture notes ==
I' m trying to sort out the best object structure to use for control system objects. There is already an LTI class in the signal processing module of SciPY, so I might be able to build on that (and hence get those systems for free) . Ideally, I'd like to allow for time delay in the linear systems representation, since these come up a lot in my group's research.
Here's some rough thoughts on a possible object structure:
'''InputOutputSystem''' - dynamical system with inputs and outputs. Could be linear or nonlinear, discrete or continuous time (? ), include infinite dimensional systems (time- delays, perhaps some classes of PDEs?). Should be compatible, if possible, with the ODE integrators that are part of SciPy (so that I can use that for simulating systems ).
'''StateSpaceSystem''' - state space representation of an input/ output system
* '''LinearStateSpaceSystem''' - linear system in state space form (ideally with time- delays)
* '''TransferFunction''' - frequency domain representation of an input/output system
* .?, -
, , that of systems.
* - of
Installation instructions ==
I' m using the [http:// ipython. scipy. org/ moin/ IPython] environment, with [http://scipy. org SciPy] extensions for scientific computing plus the [http://matplotlib.sourceforge.net/ matplotlib] extensions (which enables MATLAB -like plotting). I am doing all of my playing on OS X, using fink.
'[http://..//].the MATLAB .
's what I had to do to get the basic setup that I am using.
Here the basic that () :
# Install SciPy - I did this using fink. Have to use the main/unstable tree.
# Install matplotlib - Need this for plotting
# Install ipython - interactive python interface
* : scipy.
Small snipped of code for testing if everything is installed
import from scipy *
import from matlibplot *
a = zeros( 1000)
b = fft(a)
== Related documentation ==
=== Python documentation ===
[http: //www.scipy.org/ SciPy.org] - main web site for SciPy
* [http: //ipython.scipy. org/moin/ IPython] - enhanced shell for python
* [http: //matplotlib.sourceforge.net/ matplotlib] - 2D plotting for python
[http: //www.pyrorobotics.org PyRo] - Python Robotics library (might be nice to be compatible with this
=== Numerical routines ===
[http: //www.slicot.org/ SLICOT] - Fortran 77 implementations of numerical algorithms for computations in systems and control theory
* [http: //github.com/henjo/slicot/tree/master python wrapper] - Numpy wrapper of the control and systems library SLICOT