GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — testMimoW123 fails when compiled from source · Issue #190 · python-control/python-control

testMimoW123 fails when compiled from source #190

New issue
Copy link
New issue
Copy link
Closed
#320
Closed
testMimoW123 fails when compiled from source#190
#320
Copy link

Description

@akum036
akum036
opened on Jan 31, 2018
Issue body actions

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

Activity

  1. roryyorke commented on Jan 31, 2018

    @roryyorke
    roryyorke
    on Jan 31, 2018
    Contributor
    More actions

    On my system [1] the error for that test is 3e-9. This is with Slycot and python-control both from Github; commit a41ac6 and af8d4e, respectively.

    I speculate that differences in LAPACK or BLAS or some other lower-level library are the source of the difference between our results. The simplest fix is to raise the threshold; there's no particular significance in the chosen value.

    If there are better ways to check for approximate equivalence of LTI systems, we could use that instead.

    [1] Ubuntu 14.04 64-bit, i7-3537U, Python 3.5 from Conda

  2. murrayrm commented on Jul 18, 2018

    @murrayrm
    murrayrm
    on Jul 18, 2018
    Member
    More actions

    @akum036 Can you try this with the new slycot (0.3.3) and python-control (0.8.0) and see if this is still an issue.

  3. murrayrm commented on Dec 28, 2018

    @murrayrm
    murrayrm
    on Dec 28, 2018
    Member
    More actions

    No activity on this issue in almost a year and has not been an issue in any testing that anyone else has noted => closing.

  4. murrayrm
    closed this as completedon Dec 28, 2018
  5. murrayrm
    added a commit that references this issue on Jan 5, 2020

    Copy PR #320 fix for robust_array_test to fix OpenSUSE bug (#365)

    a7f5f1c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.