Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

unexpected behaviour offeedback combined withstep_response #1102

Closed
Labels
@johnlataire

Description

@johnlataire

Hi,

Here is unexpected behaviour when I create an LTI system withct.zpk, put it in unity feedback usingct.feedback, and compute thect.step_response of the resulting feedback system. For the tested system, the result should be stable, but it is not.

Here's the code:

import control as ctimport numpy as npimport matplotlib.pyplot as plt# the systemG = ct.zpk([],[0,-5,-10],1)print(G)K = 500ct.root_locus_plot(G,initial_gain = 500)

This generates the root locus, indicating the result for the gain 500, which shows that the system isstable in closed loop, for this gain value.

Image

Here's the code where unexpected behaviour occurs:

# put the system in unity feedback, with gain of 500Gc = ct.feedback(G,K)print(Gc)# plot the step responsestepresp = ct.step_response(Gc)stepresp.plot()# check the pole locationspzmap = ct.pole_zero_map(Gc)print(pzmap.poles)

The response is clearlyunstable, while the poles have negative real parts (i.e. stable)!

Image

On the other hand, creating the feedback system directly withct.tf (as was computed higher up, so theoretically the same feedback system), results in a stable step response.

# create the feedGcexpl = ct.tf([],[1,15,50,500])print(Gcexpl)steprespexpl = ct.step_response(Gcexpl)steprespexpl.plot()

This step response is stable, as expected.

Image

This indicates that the system generated byct.feedback is not valid.

Any clue?
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp