@@ -245,7 +245,7 @@ def testMimoW3(self):
245
245
@unittest .skipIf (not slycot_check (), "slycot not installed" )
246
246
def testMimoW123 (self ):
247
247
"""MIMO plant with all weights"""
248
- from control import augw , ss , append
248
+ from control import augw , ss , append , minreal
249
249
g = ss ([[- 1. , - 2 ], [- 3 , - 4 ]],
250
250
[[1. , 0. ], [0. , 1. ]],
251
251
[[1. , 0. ], [0. , 1. ]],
@@ -295,10 +295,10 @@ def testMimoW123(self):
295
295
self .siso_almost_equal (w2 [1 , 1 ], p [3 , 3 ])
296
296
# u->z3 should be w3*g
297
297
w3g = w3 * g ;
298
- self .siso_almost_equal (w3g [0 , 0 ], p [4 , 2 ])
299
- self .siso_almost_equal (w3g [0 , 1 ], p [4 , 3 ])
300
- self .siso_almost_equal (w3g [1 , 0 ], p [5 , 2 ])
301
- self .siso_almost_equal (w3g [1 , 1 ], p [5 , 3 ])
298
+ self .siso_almost_equal (w3g [0 , 0 ], minreal ( p [4 , 2 ]) )
299
+ self .siso_almost_equal (w3g [0 , 1 ], minreal ( p [4 , 3 ]) )
300
+ self .siso_almost_equal (w3g [1 , 0 ], minreal ( p [5 , 2 ]) )
301
+ self .siso_almost_equal (w3g [1 , 1 ], minreal ( p [5 , 3 ]) )
302
302
# u->v should be -g
303
303
self .siso_almost_equal (- g [0 , 0 ], p [6 , 2 ])
304
304
self .siso_almost_equal (- g [0 , 1 ], p [6 , 3 ])
0 commit comments