• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cwrowley / python-control / 22
73%
master: 76%

Build:
Build:
LAST BUILD BRANCH: fix-rtd
DEFAULT BRANCH: master
Ran 23 Mar 2015 01:06AM UTC
Jobs 3
Files 26
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
22

push

travis-ci

cwrowley
Speed up forced_response (lsim)

Fixes #48

The old algorithm called a general-purpose ODE integrator at each
timestep, and this could be extremely slow (hundreds of times slower
than scipy.signal.lsim).  This new algorithm evaluates the matrix
exponential once, and uses it to advance the simulation at each step.

Importantly, the old algorithm would work for variable timesteps, but
the new version assumes a fixed timestep (as does Matlab's lsim).  This
is the usual case, and it is the price one pays for increased speed.

Note that this algorithm is the same idea as the algorithm used in
scipy.signal.lsim, but the scipy version requires inverting the `A`
matrix, and thus does not work if the system has a pole at the origin.
The algorithm used here works even if there is a pole at the origin.
This commit also adds a test for this case (the double integrator).

2033 of 2789 relevant lines covered (72.89%)

2.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22.1 23 Mar 2015 01:07AM UTC 0
72.89
Travis Job 22.1
2 22.2 23 Mar 2015 01:06AM UTC 0
72.64
Travis Job 22.2
3 22.3 23 Mar 2015 01:08AM UTC 0
72.64
Travis Job 22.3
Source Files on build 22
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #22
  • d7d278ba on github
  • Next Build on lsim (#24)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc