Skip to content

testMimoW123 fails when compiled from source #190

Closed
@akum036

Description

@akum036

Hi,

I've installed Slycot and python-control from source and have run the provided test script:
python setup.py test
I get one failed test:

======================================================================
FAIL: testMimoW123 (control.tests.robust_test.TestAugw)
MIMO plant with all weights
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/akum036/lib/python-control/control/tests/robust_test.py", line 303, in testMimoW123
    self.siso_almost_equal(w3g[0,0], p[4,2])
  File "/home/akum036/lib/python-control/control/tests/robust_test.py", line 59, in siso_almost_equal
    raise AssertionError('systems not approx equal; max num. coeff is {}\nsys 1:\n{}\nsys 2:\n{}'.format(maxnum,g,h))
AssertionError: systems not approx equal; max num. coeff is 5.244462877690618e-08
sys 1:
A = [[-1. -2.  0.  0.]
 [-3. -4.  0.  0.]
 [ 2.  3. -4. -5.]
 [ 5.  7. -6. -7.]]

B = [[1.]
 [0.]
 [2.]
 [5.]]

C = [[23. 29. 11. 13.]]

D = [[23.]]

sys 2:
A = [[-2.  0.  0.  0.  0.  0. -2.  0.]
 [ 0. -2.  0.  0.  0.  0.  0. -2.]
 [ 0.  0. -3.  0.  0.  0.  0.  0.]
 [ 0.  0.  0. -4.  0.  0.  0.  0.]
 [ 0.  0.  0.  0. -4. -5.  2.  3.]
 [ 0.  0.  0.  0. -6. -7.  5.  7.]
 [ 0.  0.  0.  0.  0.  0. -1. -2.]
 [ 0.  0.  0.  0.  0.  0. -3. -4.]]

B = [[-2.]
 [ 0.]
 [ 3.]
 [ 0.]
 [ 2.]
 [ 5.]
 [ 1.]
 [ 0.]]

C = [[ 0.  0.  0.  0. 11. 13. 23. 29.]]

D = [[23.]]

The difference is fairly small (~5e-8)between the two systems, but exceeds the testing threshold (1e-8). Would anyone have ideas as to why this test is now failing, assuming it used to pass in earlier releases?

Thanks,

Avi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions