Skip to content

predplot of identified state-space system emits a warning about transfer functions #176

Open

Description

Hi,

It may be not a bug but using predplot on an identified state-space system with a large enough prediction horizon h results in the following warning (h=30 with a state space system of nx=6 states):

┌ Warning: High-order transfer functions are highly sensitive to numerical errors. The result may be inaccurate. Consider making use of statespace systems instead
└ @ ControlSystemsBase ~/.julia/packages/ControlSystemsBase/hoyMe/src/types/SisoTfTypes/SisoRational.jl:12

I'm trying to understand why the state-space system (identified using subspaceid) is first converted into a transfer function. I'm also not sure why high h values leads to high order transfer functions even if the order of the original system was quite low.

Thanks for your help.

Activity

  1. ghost changed the title [-]`predplot` of identified state-space system[/-] [+]`predplot` of identified state-space system emit a warning about transfer functions[/+] on Feb 4, 2025
  2. ghost changed the title [-]`predplot` of identified state-space system emit a warning about transfer functions[/-] [+]`predplot` of identified state-space system emits a warning about transfer functions[/+] on Feb 4, 2025
  3. baggepinnen commented on Feb 6, 2025

    @baggepinnen
    Member

    I'm trying to understand why the state-space system (identified using subspaceid) is first converted into a transfer function.

    It is not. The function observer_predictor forms a predictor system using transfer functions, which is then converted to statespace form and multiplied by the identified system. This happens to be okay since no operations are actually performed on the transfer function, but the warning does not know that

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions