@@ -261,7 +261,7 @@ def testMimoW3(self):
261
261
@unittest .skipIf (not slycot_check (), "slycot not installed" )
262
262
def testMimoW123 (self ):
263
263
"""MIMO plant with all weights"""
264
- from control import augw , ss , append
264
+ from control import augw , ss , append , minreal
265
265
g = ss ([[- 1. , - 2 ], [- 3 , - 4 ]],
266
266
[[1. , 0. ], [0. , 1. ]],
267
267
[[1. , 0. ], [0. , 1. ]],
@@ -311,10 +311,10 @@ def testMimoW123(self):
311
311
self .siso_almost_equal (w2 [1 , 1 ], p [3 , 3 ])
312
312
# u->z3 should be w3*g
313
313
w3g = w3 * g ;
314
- self .siso_almost_equal (w3g [0 , 0 ], p [4 , 2 ])
315
- self .siso_almost_equal (w3g [0 , 1 ], p [4 , 3 ])
316
- self .siso_almost_equal (w3g [1 , 0 ], p [5 , 2 ])
317
- self .siso_almost_equal (w3g [1 , 1 ], p [5 , 3 ])
314
+ self .siso_almost_equal (w3g [0 , 0 ], minreal ( p [4 , 2 ]) )
315
+ self .siso_almost_equal (w3g [0 , 1 ], minreal ( p [4 , 3 ]) )
316
+ self .siso_almost_equal (w3g [1 , 0 ], minreal ( p [5 , 2 ]) )
317
+ self .siso_almost_equal (w3g [1 , 1 ], minreal ( p [5 , 3 ]) )
318
318
# u->v should be -g
319
319
self .siso_almost_equal (- g [0 , 0 ], p [6 , 2 ])
320
320
self .siso_almost_equal (- g [0 , 1 ], p [6 , 3 ])
0 commit comments