Skip to content

Commit 4905855

Browse files
committed
add better check for find_eqpt with mixed specifications
1 parent 03c6bf3 commit 4905855

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

control/nlsys.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,9 +1746,9 @@ def find_eqpt(sys, x0, u0=None, y0=None, t=0, params=None,
17461746

17471747
# Make sure the input arguments match the sizes of the system
17481748
if len(x0) != nstates or \
1749-
(u0 is not None and len(u0) != ninputs) or \
1750-
(y0 is not None and len(y0) != noutputs) or \
1751-
(dx0 is not None and len(dx0) != nstates):
1749+
(u0 is not None and iu is None and len(u0) != ninputs) or \
1750+
(y0 is not None and iy is None and len(y0) != noutputs) or \
1751+
(dx0 is not None and idx is None and len(dx0) != nstates):
17521752
raise ValueError("length of input arguments does not match system")
17531753

17541754
# Update the parameter values

0 commit comments

Comments
 (0)