Skip to content

add numerator degree m to control.pade #73

Closed

Description

@jason-s

Pade approximants to e^-sT with equal degrees for the numerator and denominator have some undesirable properties, in particular the behavior right at time t=0. Miklós Vajta has a nice paper exploring the effects of using a slightly lower degree for the numerator and it would be helpful to add an optional argument control.pade(T, n=1, m=None) where if m is None, it is set equal to n, otherwise it provides an independent degree for the numerator. (restricted to 0 ≤ m ≤ n).

I am not exactly familiar with the right numerical way to construct polynomials of this type; I have done some exploration by calculating the polynomial coefficients of the Taylor series of degree m+n for e^-sT and then using scipy.misc.pade to compute an nth-degree rational approximant. This seems to work fairly well for small degrees but I suspect it has deficiencies of numerical errors.

Here's some example plots showing the issue for (m,n) = (7,11) and (m,n) = (11,11):

image

image

The equal-degree rational approximation produces lower error after the step begins, but has a lot of oscillation during the delay time; lower degrees in the numerator produce a "quieter" delay, at the cost of a worse approxiation after the step begins.

Activity

  1. jason-s commented on Dec 16, 2015

    @jason-s
    Author

    Hmm, it looks like delay.py isn't doing any fancy matrix math, just expressing the coefficients recursively.

    A closed-form solution to (m,n) parameterized Pade approximants to e^A are given in Moler + Van Loan's Nineteen Dubious Ways to Compute the Exponential of a Matrix, Twenty-Five Years Later, we don't need the matrix math here but it does give the coefficients. If I have time to try it out, I'll submit a pull request (I'm not too optimistic about this, though).

  2. slivingston commented on Mar 8, 2016

    @slivingston
    Member

    Closed via pull request #76.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions