control.parallel¶
-
control.
parallel
(sys1, *sysn)¶ Return the parallel connection sys1 + sys2 (+ … + sysn)
- Parameters
sys1 (scalar, StateSpace, TransferFunction, or FRD) –
*sysn (other scalars, StateSpaces, TransferFunctions, or FRDs) –
- Returns
out
- Return type
scalar, StateSpace, or TransferFunction
- Raises
ValueError – if sys1 and sys2 do not have the same numbers of inputs and outputs
Notes
This function is a wrapper for the __add__ function in the StateSpace and TransferFunction classes. The output type is usually the type of sys1. If sys1 is a scalar, then the output type is the type of sys2.
If both systems have a defined timebase (dt = 0 for continuous time, dt > 0 for discrete time), then the timebase for both systems must match. If only one of the system has a timebase, the return timebase will be set to match it.
Examples
>>> sys3 = parallel(sys1, sys2) # Same as sys3 = sys1 + sys2
>>> sys5 = parallel(sys1, sys2, sys3, sys4) # More systems