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

"Interconnect" input specification. #1015

Closed
Assignees
murrayrm
Labels
Milestone
@bonidydy

Description

@bonidydy

Hi,

In this code I want "interconnect" to build a system with just one input "sys.u1". It tries to create two inputs and as a result catches an exception. Am I getting it wrong?

import numpy as npimport control as ctf = np.array([[-35, 1], [-225, -5]])j = np.array([[0], [5]])g = np.array([[-965], [-8775]])cobs = np.eye(2)dobs = np.zeros((2, 2))a = np.array([[0, 1, 0], [0, -1, 1], [0, 0, -5]])b = np.array([[0], [0], [5]])c = np.array([[1, 0, 0]])d = 0plant = ct.ss(a, b, c, d,              inputs=["u1"], outputs=["y1"], name="plant")observer = ct.ss(f, np.hstack((g, j)), cobs, dobs,                 inputs=["u1", "u2"], outputs=["y1", "y2"], name="observer")sys = ct.interconnect([plant, observer],                      connections=[["observer.u1", "plant.y1"]],                      inplist=[["plant.u1", "observer.u2"]],                      outlist=[["plant.y1"], ["observer.y1"], ["observer.y2"]],                      inputs=["u1"],                      outputs=["y1", "y2", "y3"],                      debug=True)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp