GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — control.forced_response argument T · Issue #586 · python-control/python-control

control.forced_response argument T #586

New issue
Copy link
New issue
Copy link
Closed
#588
Closed
control.forced_response argument T#586
#588
Copy link
Assignees
bnavigator

Description

@forgi86
forgi86
opened on Mar 24, 2021
Issue body actions

In version 0.9:

  • For a discrete-time system , the time vector should be optional in the forced response (as stated in the documentation).
    However, this code does not work for me:

sys = control.drss(states=1, outputs=1, inputs=1)
u = np.random.randn(1000)
control.forced_response(sys, U=u)

  • Also, the default value of return_x is stated to be True in the docstring, but it is None (False?) in the code.

Activity

  1. bnavigator commented on Mar 24, 2021

    @bnavigator
    bnavigator
    on Mar 24, 2021
    Contributor
    More actions
    • For a discrete-time system , the time vector should be optional in the forced response (as stated in the documentation).

    Automatic timevector calculation only works if the sys has dt specified. Should be stated more explicitly in the documentation and a better error message should be provided.

    Plus, there is a bug in drss. It should return a system with dt=True, but the returned system has dt=0.

    • Also, the default value of return_x is stated to be True in the docstring, but it is None (False?) in the code.

    Agreed, this is a bug an error in the documentation. Since 0.9.0 the default value of config.defaults['forced_response.return_x'] is False.

  2. bnavigator
    self-assigned this
    on Mar 24, 2021
  3. bnavigator
    linked a pull request that will close this issueimprove forced_response and its documentation #588on Mar 30, 2021
  4. bnavigator
    closed this as completedin #588on Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @bnavigator
    bnavigator

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

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.