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 — create_statefbk_iosystem sets system name incorrectly · Issue #848 · python-control/python-control

create_statefbk_iosystem sets system name incorrectly #848

New issue
Copy link
New issue
Copy link
Closed
#857
#849
Closed
create_statefbk_iosystem sets system name incorrectly#848
#857
#849
Copy link
Assignees
murrayrm

Description

@murrayrm
murrayrm
opened on Jan 14, 2023
Issue body actions

The create_statefbk_iosystem sets the name of the closed loop system that it creates to one of the system inputs. For example:

import numpy as np
import control as ct
sys = ct.ss([[0, 10], [-1, 0]], [[0], [1]], np.eye(2), 0, name='sys')
K, _, _ = ct.lqr(sys, np.eye(sys.nstates), np.eye(sys.ninputs))
ctrl, clsys = ct.create_statefbk_iosystem(sys, K)
print(clsys)

gives

<LinearICSystem>: u[0]
Inputs (3): ['xd[0]', 'xd[1]', 'ud[0]']
Outputs (3): ['y[0]', 'y[1]', 'u[0]']
States (2): ['sys_x[0]', 'sys_x[1]']

which has the name of the system as u[0] instead of something like sys[3].

Activity

  1. murrayrm
    self-assigned this
    on Jan 14, 2023
  2. murrayrm
    linked a pull request that will close this issueSmall fixes based on Caltech CDS 112 course #849on Jan 14, 2023
  3. henklaak commented on Feb 1, 2023

    @henklaak
    henklaak
    on Feb 1, 2023
    Contributor
    More actions

    Problem is in the iosys.py 2871, where 'name' variable gets clobbered.

    Submitted PR.

  4. henklaak commented on Feb 2, 2023

    @henklaak
    henklaak
    on Feb 2, 2023
    Contributor
    More actions

    Close?

  5. bnavigator commented on Feb 2, 2023

    @bnavigator
    bnavigator
    on Feb 2, 2023
    Contributor
    More actions

    Closed by #857

  6. bnavigator
    closed this as completedon Feb 2, 2023
  7. bnavigator
    linked a pull request that will close this issueFix Interconnect name clobbering #857on Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @murrayrm
    murrayrm

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 01402503 — 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.