GithubHelp home page GithubHelp logo

Comments (4)

slivingston avatar slivingston commented on June 21, 2024 1

Did you try to use the inputs and outputs parameters? These are shown in the "auto-splitting" section of examples/interconnect_tutorial.ipynb.

from python-control.

slivingston avatar slivingston commented on June 21, 2024 1

connections specifies internal connections (i.e., between subsystems), whereas auto-splitting behavior only affects how system inputs map to subsystem inputs. Therefore, connections can be given when doing this.

Note that automatically (also known as "implicitly") making internal connections will not work with an explicit connections argument. For reference, the relevant part of the code is

# If connections was not specified, assume implicit interconnection.
# set up default connection list
if connections is None:
connection_type = 'implicit'
# For each system input, look for outputs with the same name
connections = []
for input_sys in syslist:
for input_name in input_sys.input_labels:
connect = [input_sys.name + "." + input_name]
for output_sys in syslist:
if input_name in output_sys.output_labels:
connect.append(output_sys.name + "." + input_name)
if len(connect) > 1:
connections.append(connect)

from python-control.

sdahdah avatar sdahdah commented on June 21, 2024

That makes sense, thanks! Does that only work when connecting signals by name (i.e. when connections is left unspecified)?

from python-control.

sdahdah avatar sdahdah commented on June 21, 2024

Got it. Thanks for the help!

from python-control.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.