octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave 3.6.1-rc0 release candidate available for ftp


From: Lukas Reichlin
Subject: Re: Octave 3.6.1-rc0 release candidate available for ftp
Date: Wed, 8 Feb 2012 18:45:05 +0100

On 07.02.2012, at 22:27, John W. Eaton wrote:

> On  7-Feb-2012, Lukas Reichlin wrote:
> 
> | I attached my MacPorts portfile. It works, but I had to recompile my 
> oct-files. Not a tragedy at all, but IIRC, binary compatibility used to be a 
> goal for minor revisions (like 3.6.0 to 3.6.1).
> 
> I'm surprised by that because nothing changed in libcruft and the only
> changes to liboctave and liboctinterp were internal.  There were no
> interface changes.  Following the advice of the libtool manual:
> 
>  http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info
> 
> I increased the "revision" version for liboctave and liboctinterp.
> But your old .oct files should still be able to work with the new
> version.  It seems to work correctly for me on my Debian system.
> 
> So precisely what was the error that you encountered?
> 
> jwe


Last login: Wed Feb  8 18:39:21 on ttys001
ra:~ lukas$ octave
GNU Octave, version 3.6.1-rc0
Copyright (C) 2012 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "x86_64-apple-darwin10.8.0".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.

For information about changes from previous versions, type `news'.

warning: no graphical display found
















octave:1> test_control 
  ***** shared ltisys
 ltisys = tf (12);
!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    ltisys = [](0x0)
  ***** shared Mo, Me
 A = [  1.0  0.5
        0.5  1.0 ].';

 B = [  0.0 -1.0
        1.0  0.0 ].';

 C = [ -1.0  0.0
        0.0  1.0 ].';

 D = [  1.0  0.0
        0.0 -1.0 ].';

 [Ao, Bo, Co, Do] = slab04md (A, B, C, D, 1.0, 1.0, false);

 Ae = [ -1.0000  -4.0000
        -4.0000  -1.0000 ];

 Be = [  2.8284   0.0000
         0.0000  -2.8284 ];

 Ce = [  0.0000   2.8284
        -2.8284   0.0000 ];

 De = [ -1.0000   0.0000
         0.0000  -3.0000 ];

 Mo = [Ao, Bo; Co, Do];
 Me = [Ae, Be; Ce, De];

!!!!! test failed
/Users/lukas/control/src/slab04md.oct: failed to load: 
dlopen(/Users/lukas/control/src/slab04md.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/slab04md.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    Mo = [](0x0)
    Me = [](0x0)
  ***** shared Mo, Me
 A = [  1.0  0.5
        0.5  1.0 ];

 B = [  0.0 -1.0
        1.0  0.0 ];

 C = [ -1.0  0.0
        0.0  1.0 ];

 D = [  1.0  0.0
        0.0 -1.0 ];

 [Ao, Bo, Co, Do] = ssdata (d2c (c2d (ss (A, B, C, D), 2, "tustin"), "tustin"));

 Mo = [Ao, Bo; Co, Do];
 Me = [A, B; C, D];

!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    Mo = [](0x0)
    Me = [](0x0)
  ***** shared M, Me
 A1 = [ 1.0   0.0  -1.0
        0.0  -1.0   1.0
        1.0   1.0   2.0 ];

 B1 = [ 1.0   1.0   0.0
        2.0   0.0   1.0 ].';

 C1 = [ 3.0  -2.0   1.0
        0.0   1.0   0.0 ];

 D1 = [ 1.0   0.0
        0.0   1.0 ];

 A2 = [-3.0   0.0   0.0
        1.0   0.0   1.0
        0.0  -1.0   2.0 ];

 B2 = [ 0.0  -1.0   0.0
        1.0   0.0   2.0 ].';

 C2 = [ 1.0   1.0   0.0
        1.0   1.0  -1.0 ];

 D2 = [ 1.0   1.0
        0.0   1.0 ];

 sys1 = ss (A1, B1, C1, D1);
 sys2 = ss (A2, B2, C2, D2);
 sys = feedback (sys1, sys2);
 [A, B, C, D] = ssdata (sys);
 M = [A, B; C, D];

 Ae = [-0.5000  -0.2500  -1.5000  -1.2500  -1.2500   0.7500
       -1.5000  -0.2500   0.5000  -0.2500  -0.2500  -0.2500
        1.0000   0.5000   2.0000  -0.5000  -0.5000   0.5000
        0.0000   0.5000   0.0000  -3.5000  -0.5000   0.5000
       -1.5000   1.2500  -0.5000   1.2500   0.2500   1.2500
        0.0000   1.0000   0.0000  -1.0000  -2.0000   3.0000 ];

 Be = [ 0.5000   0.7500
        0.5000  -0.2500
        0.0000   0.5000
        0.0000   0.5000
       -0.5000   0.2500
        0.0000   1.0000 ];

 Ce = [ 1.5000  -1.2500   0.5000  -0.2500  -0.2500  -0.2500
        0.0000   0.5000   0.0000  -0.5000  -0.5000   0.5000 ];

 De = [ 0.5000  -0.2500
        0.0000   0.5000 ];

 Me = [Ae, Be; Ce, De];

!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    M = [](0x0)
    Me = [](0x0)
  ***** shared M, Me
 A1 = [ 1.0   0.0  -1.0
        0.0  -1.0   1.0
        1.0   1.0   2.0 ];

 B1 = [ 1.0   1.0   0.0
        2.0   0.0   1.0 ].';

 C1 = [ 3.0  -2.0   1.0
        0.0   1.0   0.0 ];

 D1 = [ 1.0   0.0
        0.0   1.0 ];

 A2 = [-3.0   0.0   0.0
        1.0   0.0   1.0
        0.0  -1.0   2.0 ];

 B2 = [ 0.0  -1.0   0.0
        1.0   0.0   2.0 ].';

 C2 = [ 1.0   1.0   0.0
        1.0   1.0  -1.0 ];

 D2 = [ 1.0   1.0
        0.0   1.0 ];

 sys1 = ss (A1, B1, C1, D1);
 sys2 = ss (A2, B2, C2, D2);
 sys = [sys1, sys2];
 [A, B, C, D] = ssdata (sys);
 M = [A, B; C, D];

 Ae = [ 1.0000   0.0000  -1.0000   0.0000   0.0000   0.0000
        0.0000  -1.0000   1.0000   0.0000   0.0000   0.0000
        1.0000   1.0000   2.0000   0.0000   0.0000   0.0000
        0.0000   0.0000   0.0000  -3.0000   0.0000   0.0000
        0.0000   0.0000   0.0000   1.0000   0.0000   1.0000
        0.0000   0.0000   0.0000   0.0000  -1.0000   2.0000 ];

 Be = [ 1.0000   2.0000   0.0000   0.0000
        1.0000   0.0000   0.0000   0.0000
        0.0000   1.0000   0.0000   0.0000
        0.0000   0.0000   0.0000   1.0000
        0.0000   0.0000  -1.0000   0.0000
        0.0000   0.0000   0.0000   2.0000 ];

 Ce = [ 3.0000  -2.0000   1.0000   1.0000   1.0000   0.0000
        0.0000   1.0000   0.0000   1.0000   1.0000  -1.0000 ];

 De = [ 1.0000   0.0000   1.0000   1.0000
        0.0000   1.0000   0.0000   1.0000 ];

 Me = [Ae, Be; Ce, De];

!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    M = [](0x0)
    Me = [](0x0)
  ***** shared M, Me
 A = [ 1.0   2.0   0.0
       4.0  -1.0   0.0
       0.0   0.0   1.0 ];

 B = [ 1.0   0.0
       0.0   1.0
       1.0   0.0 ];

 C = [ 0.0   1.0  -1.0
       0.0   0.0   1.0 ];

 D = [ 4.0   0.0
       0.0   1.0 ];

 sys = ss (A, B, C, D);
 sysinv = inv (sys);
 [Ai, Bi, Ci, Di] = ssdata (sysinv);
 M = [Ai, Bi; Ci, Di];

 Ae = [ 1.0000   1.7500   0.2500
        4.0000  -1.0000  -1.0000
        0.0000  -0.2500   1.2500 ];

 Be = [-0.2500   0.0000
        0.0000  -1.0000
       -0.2500   0.0000 ];

 Ce = [ 0.0000   0.2500  -0.2500
        0.0000   0.0000   1.0000 ];

 De = [ 0.2500   0.0000
        0.0000   1.0000 ];

 Me = [Ae, Be; Ce, De];  # Me = [Ae, -Be; -Ce, De];

!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    M = [](0x0)
    Me = [](0x0)
  ***** shared C, D

 A = ss (-2, 3, 4, 5);
 B = A / A;
 C = minreal (B, 1e-15);
 D = ss (1);

!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    C = [](0x0)
    D = [](0x0)
  ***** shared sysmat, sysmat_exp
 sys1 = ss ([0, 1; -3, -2], [0; 1], [-5, 1], [2]);
 sys2 = ss ([-10], [1], [-40], [5]);
 sys3 = sys2 * sys1;
 [A, B, C, D] = ssdata (sys3);
 sysmat = [A, B; C, D];
 A_exp = [ -10   -5    1
             0    0    1
             0   -3   -2 ];
 B_exp = [   2
             0
             1 ];
 C_exp = [ -40  -25    5 ];
 D_exp = [  10 ];
 sysmat_exp = [A_exp, B_exp; C_exp, D_exp];
!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    sysmat = [](0x0)
    sysmat_exp = [](0x0)
  ***** shared H2, Hinf
 sys = ss (-1, 1, 1, 0);
 H2 = norm (sys, 2);
 Hinf = norm (sys, inf);
!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    H2 = [](0x0)
    Hinf = [](0x0)
  ***** shared M, Me
 A1 = [ 1.0   0.0  -1.0
        0.0  -1.0   1.0
        1.0   1.0   2.0 ];

 B1 = [ 1.0   1.0   0.0
        2.0   0.0   1.0 ].';

 C1 = [ 3.0  -2.0   1.0
        0.0   1.0   0.0 ];

 D1 = [ 1.0   0.0
        0.0   1.0 ];

 A2 = [-3.0   0.0   0.0
        1.0   0.0   1.0
        0.0  -1.0   2.0 ];

 B2 = [ 0.0  -1.0   0.0
        1.0   0.0   2.0 ].';

 C2 = [ 1.0   1.0   0.0
        1.0   1.0  -1.0 ];

 D2 = [ 1.0   1.0
        0.0   1.0 ];

 sys1 = ss (A1, B1, C1, D1);
 sys2 = ss (A2, B2, C2, D2);
 sys = sys1 + sys2;
 [A, B, C, D] = ssdata (sys);
 M = [A, B; C, D];

 Ae = [ 1.0000   0.0000  -1.0000   0.0000   0.0000   0.0000
        0.0000  -1.0000   1.0000   0.0000   0.0000   0.0000
        1.0000   1.0000   2.0000   0.0000   0.0000   0.0000
        0.0000   0.0000   0.0000  -3.0000   0.0000   0.0000
        0.0000   0.0000   0.0000   1.0000   0.0000   1.0000
        0.0000   0.0000   0.0000   0.0000  -1.0000   2.0000 ];

 Be = [ 1.0000   2.0000
        1.0000   0.0000
        0.0000   1.0000
        0.0000   1.0000
       -1.0000   0.0000
        0.0000   2.0000 ];

 Ce = [ 3.0000  -2.0000   1.0000   1.0000   1.0000   0.0000
        0.0000   1.0000   0.0000   1.0000   1.0000  -1.0000 ];

 De = [ 2.0000   1.0000
        0.0000   2.0000 ];

 Me = [Ae, Be; Ce, De];

!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    M = [](0x0)
    Me = [](0x0)
  ***** shared Ao, Bo, Co, SCALEo, MAXREDo, Ae, Be, Ce, SCALEe, MAXREDe
 A = [          0.0  1.0000e+000          0.0          0.0          0.0
       -1.5800e+006 -1.2570e+003          0.0          0.0          0.0
        3.5410e+014          0.0 -1.4340e+003          0.0 -5.3300e+011
                0.0          0.0          0.0          0.0  1.0000e+000
                0.0          0.0          0.0 -1.8630e+004 -1.4820e+000 ];

 B = [          0.0          0.0
        1.1030e+002          0.0
                0.0          0.0
                0.0          0.0
                0.0  8.3330e-003 ];

 C = [  1.0000e+000          0.0          0.0          0.0          0.0
                0.0          0.0  1.0000e+000          0.0          0.0
                0.0          0.0          0.0  1.0000e+000          0.0
        6.6640e-001          0.0 -6.2000e-013          0.0          0.0
                0.0          0.0 -1.0000e-003  1.8960e+006  1.5080e+002 ];

 MAXRED = 0.0;

 [Ao, Bo, Co, MAXREDo, SCALEo] = sltb01id (A, B, C, MAXRED);

 Ae = [    0.0000000D+00  0.1000000D+05  0.0000000D+00  0.0000000D+00  
0.0000000D+00
          -0.1580000D+03 -0.1257000D+04  0.0000000D+00  0.0000000D+00  
0.0000000D+00
           0.3541000D+05  0.0000000D+00 -0.1434000D+04  0.0000000D+00 
-0.5330000D+03
           0.0000000D+00  0.0000000D+00  0.0000000D+00  0.0000000D+00  
0.1000000D+03
           0.0000000D+00  0.0000000D+00  0.0000000D+00 -0.1863000D+03 
-0.1482000D+01 ];

 Be = [    0.0000000D+00  0.0000000D+00
           0.1103000D+04  0.0000000D+00
           0.0000000D+00  0.0000000D+00
           0.0000000D+00  0.0000000D+00
           0.0000000D+00  0.8333000D+02 ];

 Ce = [    0.1000000D-04  0.0000000D+00  0.0000000D+00  0.0000000D+00  
0.0000000D+00
           0.0000000D+00  0.0000000D+00  0.1000000D+06  0.0000000D+00  
0.0000000D+00
           0.0000000D+00  0.0000000D+00  0.0000000D+00  0.1000000D-05  
0.0000000D+00
           0.6664000D-05  0.0000000D+00 -0.6200000D-07  0.0000000D+00  
0.0000000D+00
           0.0000000D+00  0.0000000D+00 -0.1000000D+03  0.1896000D+01  
0.1508000D-01 ];

 SCALEe = [0.1000000D-04  0.1000000D+00  0.1000000D+06  0.1000000D-05  
0.1000000D-03 ];

 MAXREDe = 0.3488E+10;

!!!!! test failed
/Users/lukas/control/src/sltb01id.oct: failed to load: 
dlopen(/Users/lukas/control/src/sltb01id.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/sltb01id.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    Ao = [](0x0)
    Bo = [](0x0)
    Co = [](0x0)
    SCALEo = [](0x0)
    MAXREDo = [](0x0)
    Ae = [](0x0)
    Be = [](0x0)
    Ce = [](0x0)
    SCALEe = [](0x0)
    MAXREDe = [](0x0)
  ***** shared B, C

 A = ss (-2, 3, 4, 5);
 B = A / A;
 C = sminreal (B);  # no states should be removed

!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    B = [](0x0)
    C = [](0x0)
  ***** shared z, z_exp
 A = [   -0.7   -0.0458     -12.2        0
            0    -0.014   -0.2904   -0.562
            1   -0.0057      -1.4        0
            1         0         0        0 ];

 B = [  -19.1      -3.1
      -0.0119   -0.0096
        -0.14     -0.72
            0         0 ];

 C = [      0         0        -1        1
            0         0     0.733        0 ];

 D = [      0         0
       0.0768    0.1134 ];

 sys = ss (A, B, C, D, "scaled", true);
 z = sort (zero (sys));

 z_exp = sort ([-13.2759; 12.5774; -0.0155]);

!!!!! test failed
/Users/lukas/control/src/is_real_scalar.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_scalar.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_scalar.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    z = [](0x0)
    z_exp = [](0x0)
  ***** shared M, M_exp
 A = [-1.0  0.0  4.0  5.0 -3.0 -2.0
      -2.0  4.0 -7.0 -2.0  0.0  3.0
      -6.0  9.0 -5.0  0.0  2.0 -1.0
      -8.0  4.0  7.0 -1.0 -3.0  0.0
       2.0  5.0  8.0 -9.0  1.0 -4.0
       3.0 -5.0  8.0  0.0  2.0 -6.0];

 B = [-3.0 -4.0 -2.0  1.0  0.0
       2.0  0.0  1.0 -5.0  2.0
      -5.0 -7.0  0.0  7.0 -2.0
       4.0 -6.0  1.0  1.0 -2.0
      -3.0  9.0 -8.0  0.0  5.0
       1.0 -2.0  3.0 -6.0 -2.0];

 C = [ 1.0 -1.0  2.0 -4.0  0.0 -3.0
      -3.0  0.0  5.0 -1.0  1.0  1.0
      -7.0  5.0  0.0 -8.0  2.0 -2.0
       9.0 -3.0  4.0  0.0  3.0  7.0
       0.0  1.0 -2.0  1.0 -6.0 -2.0];

 D = [ 0.0  0.0  0.0 -4.0 -1.0
       0.0  0.0  0.0  1.0  0.0
       0.0  0.0  0.0  0.0  1.0
       3.0  1.0  0.0  1.0 -3.0
      -2.0  0.0  1.0  7.0  1.0];

 P = ss (A, B, C, D);
 K = h2syn (P, 2, 2);
 M = [K.A, K.B; K.C, K.D];

 KA = [  88.0015  -145.7298   -46.2424    82.2168   -45.2996   -31.1407
         25.7489   -31.4642   -12.4198     9.4625    -3.5182     2.7056
         54.3008  -102.4013   -41.4968    50.8412   -20.1286   -26.7191
        108.1006  -198.0785   -45.4333    70.3962   -25.8591   -37.2741
       -115.8900   226.1843    47.2549   -47.8435   -12.5004    34.7474
         59.0362  -101.8471   -20.1052    36.7834   -16.1063   -26.4309];

 KB = [   3.7345     3.4758
         -0.3020     0.6530
          3.4735     4.0499
          4.3198     7.2755
         -3.9424   -10.5942
          2.1784     2.5048];

 KC = [  -2.3346     3.2556     0.7150    -0.9724     0.6962     0.4074
          7.6899    -8.4558    -2.9642     7.0365    -4.2844     0.1390];

 KD = [   0.0000     0.0000
          0.0000     0.0000];

 M_exp = [KA, KB; KC, KD];

!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    M = [](0x0)
    M_exp = [](0x0)
  ***** shared M, M_exp
 A = [-1.0  0.0  4.0  5.0 -3.0 -2.0
      -2.0  4.0 -7.0 -2.0  0.0  3.0
      -6.0  9.0 -5.0  0.0  2.0 -1.0
      -8.0  4.0  7.0 -1.0 -3.0  0.0
       2.0  5.0  8.0 -9.0  1.0 -4.0
       3.0 -5.0  8.0  0.0  2.0 -6.0];

 B = [-3.0 -4.0 -2.0  1.0  0.0
       2.0  0.0  1.0 -5.0  2.0
      -5.0 -7.0  0.0  7.0 -2.0
       4.0 -6.0  1.0  1.0 -2.0
      -3.0  9.0 -8.0  0.0  5.0
       1.0 -2.0  3.0 -6.0 -2.0];

 C = [ 1.0 -1.0  2.0 -4.0  0.0 -3.0
      -3.0  0.0  5.0 -1.0  1.0  1.0
      -7.0  5.0  0.0 -8.0  2.0 -2.0
       9.0 -3.0  4.0  0.0  3.0  7.0
       0.0  1.0 -2.0  1.0 -6.0 -2.0];

 D = [ 1.0 -2.0 -3.0  0.0  0.0
       0.0  4.0  0.0  1.0  0.0
       5.0 -3.0 -4.0  0.0  1.0
       0.0  1.0  0.0  1.0 -3.0
       0.0  0.0  1.0  7.0  1.0];

 P = ss (A, B, C, D);
 K = hinfsyn (P, 2, 2, 15);
 M = [K.A, K.B; K.C, K.D];

 KA = [ -2.8043  14.7367   4.6658   8.1596   0.0848   2.5290
         4.6609   3.2756  -3.5754  -2.8941   0.2393   8.2920
       -15.3127  23.5592  -7.1229   2.7599   5.9775  -2.0285
       -22.0691  16.4758  12.5523 -16.3602   4.4300  -3.3168
        30.6789  -3.9026  -1.3868  26.2357  -8.8267  10.4860
        -5.7429   0.0577  10.8216 -11.2275   1.5074 -10.7244];

 KB = [ -0.1581  -0.0793
        -0.9237  -0.5718
         0.7984   0.6627
         0.1145   0.1496
        -0.6743  -0.2376
         0.0196  -0.7598];

 KC = [ -0.2480  -0.1713  -0.0880   0.1534   0.5016  -0.0730
         2.8810  -0.3658   1.3007   0.3945   1.2244   2.5690];

 KD = [  0.0554   0.1334
        -0.3195   0.0333];

 M_exp = [KA, KB; KC, KD];

!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    M = [](0x0)
    M_exp = [](0x0)
  ***** shared AK, BK, CK, DK, RCOND, AKe, BKe, CKe, DKe, RCONDe
 A = [ -1.0  0.0  4.0  5.0 -3.0 -2.0
       -2.0  4.0 -7.0 -2.0  0.0  3.0
       -6.0  9.0 -5.0  0.0  2.0 -1.0
       -8.0  4.0  7.0 -1.0 -3.0  0.0
        2.0  5.0  8.0 -9.0  1.0 -4.0
        3.0 -5.0  8.0  0.0  2.0 -6.0 ];
   
 B = [ -3.0 -4.0
        2.0  0.0
       -5.0 -7.0
        4.0 -6.0
       -3.0  9.0
        1.0 -2.0 ];
   
 C = [  1.0 -1.0  2.0 -4.0  0.0 -3.0
       -3.0  0.0  5.0 -1.0  1.0  1.0
       -7.0  5.0  0.0 -8.0  2.0 -2.0 ];
  
 D = [  1.0 -2.0
        0.0  4.0
        5.0 -3.0 ];
    
 FACTOR = 1.0;

 [AK, BK, CK, DK, RCOND] = slsb10id (A, B, C, D, FACTOR);

 AKe = [ -39.0671    9.9293   22.2322  -27.4113   43.8655
          -6.6117    3.0006   11.0878  -11.4130   15.4269
          33.6805   -6.6934  -23.9953   14.1438  -33.4358
         -32.3191    9.7316   25.4033  -24.0473   42.0517
         -44.1655   18.7767   34.8873  -42.4369   50.8437 ];

 BKe = [ -10.2905  -16.5382  -10.9782
          -4.3598   -8.7525   -5.1447
           6.5962    1.8975    6.2316
          -9.8770  -14.7041  -11.8778
          -9.6726  -22.7309  -18.2692 ];

 CKe = [  -0.6647   -0.0599   -1.0376    0.5619    1.7297
          -8.4202    3.9573    7.3094   -7.6283   10.6768 ];

 DKe = [  0.8466    0.4979   -0.6993
         -1.2226   -4.8689   -4.5056 ];

 RCONDe = [ 0.13861D-01  0.90541D-02 ].';

!!!!! test failed
/Users/lukas/control/src/slsb10id.oct: failed to load: 
dlopen(/Users/lukas/control/src/slsb10id.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/slsb10id.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    AK = [](0x0)
    BK = [](0x0)
    CK = [](0x0)
    DK = [](0x0)
    RCOND = [](0x0)
    AKe = [](0x0)
    BKe = [](0x0)
    CKe = [](0x0)
    DKe = [](0x0)
    RCONDe = [](0x0)
  ***** shared x, l, g, xe, le, ge
 a = [-3   2
       1   1];

 b = [ 0
       1];

 c = [ 1  -1];

 r = 3;

 [x, l, g] = care (a, b, c.'*c, r);

 xe = [ 0.5895    1.8216
        1.8216    8.8188];

 le = [-3.5026
       -1.4370];

 ge = [ 0.6072    2.9396];

!!!!! test failed
/Users/lukas/control/src/is_real_square_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_square_matrix.oct, 2): Library not 
loaded: /opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_square_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    x = [](0x0)
    l = [](0x0)
    g = [](0x0)
    xe = [](0x0)
    le = [](0x0)
    ge = [](0x0)
  ***** shared x, l, g, xe, le, ge
 a = [ 0.4   1.7
       0.9   3.8];

 b = [ 0.8
       2.1];

 c = [ 1  -1];

 r = 3;

 [x, l, g] = dare (a, b, c.'*c, r);

 xe = [ 1.5354    1.2623
        1.2623   10.5596];

 le = [-0.0022
        0.2454];

 ge = [ 0.4092    1.7283];

!!!!! test failed
/Users/lukas/control/src/is_real_square_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_square_matrix.oct, 2): Library not 
loaded: /opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_square_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    x = [](0x0)
    l = [](0x0)
    g = [](0x0)
    xe = [](0x0)
    le = [](0x0)
    ge = [](0x0)
  ***** shared m, m_exp, g, g_exp, x, x_exp
 sys = ss (-2, 1, 1, 3);
 [est, g, x] = kalman (sys, 1, 1, 1);
 [a, b, c, d] = ssdata (est);
 m = [a, b; c, d];
 m_exp = [-2.25, 0.25; 1, 0; 1, 0];
 g_exp = 0.25;
 x_exp = 0;
!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    m = [](0x0)
    m_exp = [](0x0)
    g = [](0x0)
    g_exp = [](0x0)
    x = [](0x0)
    x_exp = [](0x0)
  ***** shared p, q, p_exp, q_exp
 sys = ss (-1, 1, 1, 0);
 [p, q] = covar (sys, 5);
 p_exp = 2.5000;
 q_exp = 2.5000;
!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    p = [](0x0)
    q = [](0x0)
    p_exp = [](0x0)
    q_exp = [](0x0)
  ***** shared X, X_exp
 A = [3.0   1.0   1.0
      1.0   3.0   0.0
      0.0   0.0   3.0];

 B = [25.0  24.0  15.0
      24.0  32.0   8.0
      15.0   8.0  40.0];

 X = dlyap (A.', -B);

 X_exp = [2.0000   1.0000   1.0000
          1.0000   3.0000   0.0000
          1.0000   0.0000   4.0000];

!!!!! test failed
/Users/lukas/control/src/is_real_square_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_square_matrix.oct, 2): Library not 
loaded: /opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_square_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    X = [](0x0)
    X_exp = [](0x0)
  ***** test
 a = [-1 0 0; 1/2 -1 0; 1/2 0 -1];
 b = [1 0; 0 -1; 0 1];
 c = [0 0 1; 1 1 0]; ## it doesn't matter what the value of c is
 Wc = gram (ss (a, b, c), "c");
 assert (a * Wc + Wc * a.' + b * b.', zeros (size (a)))
!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
  ***** shared X, X_exp
 A = [1, 2; -3, -4];
 Q = [3, 1; 1, 1];
 X = lyap (A, Q);
 X_exp = [ 6.1667, -3.8333;
          -3.8333,  3.0000];
!!!!! test failed
/Users/lukas/control/src/is_real_square_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_square_matrix.oct, 2): Library not 
loaded: /opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_square_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    X = [](0x0)
    X_exp = [](0x0)
  ***** shared U, U_exp, X, X_exp

 A = [ -1.0  37.0 -12.0 -12.0
       -1.0 -10.0   0.0   4.0
        2.0  -4.0   7.0  -6.0
        2.0   2.0   7.0  -9.0 ].';

 B = [  1.0   2.5   1.0   3.5
        0.0   1.0   0.0   1.0
       -1.0  -2.5  -1.0  -1.5
        1.0   2.5   4.0  -5.5
       -1.0  -2.5  -4.0   3.5 ].';

 U = lyapchol (A, B);

 X = U.' * U;  # use lyap at home!

 U_exp = [  1.0000   0.0000   0.0000   0.0000
            3.0000   1.0000   0.0000   0.0000
            2.0000  -1.0000   1.0000   0.0000
           -1.0000   1.0000  -2.0000   1.0000 ].';

 X_exp = [  1.0000   3.0000   2.0000  -1.0000
            3.0000  10.0000   5.0000  -2.0000
            2.0000   5.0000   6.0000  -5.0000
           -1.0000  -2.0000  -5.0000   7.0000 ];

!!!!! test failed
/Users/lukas/control/src/is_real_square_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_square_matrix.oct, 2): Library not 
loaded: /opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_square_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    U = [](0x0)
    U_exp = [](0x0)
    X = [](0x0)
    X_exp = [](0x0)
  ***** shared Ao, Bo, Co, Zo, Ae, Be, Ce, Ze, NCONT
 A =  [ -1.0   0.0   0.0
        -2.0  -2.0  -2.0
        -1.0   0.0  -3.0 ];

 B =  [  1.0   0.0   0.0
         0.0   2.0   1.0 ].';

 C =  [  0.0   2.0   1.0
         1.0   0.0   0.0 ];

 [Ao, Bo, Co, Zo, NCONT] = ctrbf (A, B, C);

 Ae = [ -3.0000   2.2361
         0.0000  -1.0000 ];

 Be = [  0.0000  -2.2361
         1.0000   0.0000 ];

 Ce = [ -2.2361   0.0000
         0.0000   1.0000 ];

 Ze = [  0.0000   1.0000   0.0000
        -0.8944   0.0000  -0.4472
        -0.4472   0.0000   0.8944 ];

!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    Ao = [](0x0)
    Bo = [](0x0)
    Co = [](0x0)
    Zo = [](0x0)
    Ae = [](0x0)
    Be = [](0x0)
    Ce = [](0x0)
    Ze = [](0x0)
    NCONT = [](0x0)
  ***** shared hsv, hsv_exp
 a = [ -0.04165  0.0000  4.9200  -4.9200  0.0000  0.0000  0.0000
       -5.2100  -12.500  0.0000   0.0000  0.0000  0.0000  0.0000
        0.0000   3.3300 -3.3300   0.0000  0.0000  0.0000  0.0000
        0.5450   0.0000  0.0000   0.0000 -0.5450  0.0000  0.0000
        0.0000   0.0000  0.0000   4.9200 -0.04165 0.0000  4.9200
        0.0000   0.0000  0.0000   0.0000 -5.2100 -12.500  0.0000
        0.0000   0.0000  0.0000   0.0000  0.0000  3.3300 -3.3300];

 b = [  0.0000   0.0000
       12.5000   0.0000
        0.0000   0.0000
        0.0000   0.0000
        0.0000   0.0000
        0.0000   12.500
        0.0000   0.0000];

 c = [  1.0000   0.0000  0.0000   0.0000  0.0000  0.0000  0.0000
        0.0000   0.0000  0.0000   1.0000  0.0000  0.0000  0.0000
        0.0000   0.0000  0.0000   0.0000  1.0000  0.0000  0.0000];

 sys = ss (a, b, c, [], "scaled", true);
 hsv = hsvd (sys, "alpha", 0.0);

 hsv_exp = [2.5139; 2.0846; 1.9178; 0.7666; 0.5473; 0.0253; 0.0246];

!!!!! test failed
/Users/lukas/control/src/is_real_scalar.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_scalar.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_scalar.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    hsv = [](0x0)
    hsv_exp = [](0x0)
  ***** assert (place (ss (A, B, C), P), Kexpected, 2*eps);
!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    A =

       0   1
       3   2

    B =

       0
       1

    C =

       2   1

    P =

      -1.00000  -0.50000

    Kexpected =

       3.5000   3.5000

  ***** assert (ctrb ([1, 0; 0, -0.5], [8; 8]), [8, 8; 8, -4]);
!!!!! test failed
/Users/lukas/control/src/is_real_square_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_square_matrix.oct, 2): Library not 
loaded: /opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_square_matrix.oct
  Reason: image not found
  ***** shared initial_c, initial_c_exp, initial_d, initial_d_exp

 A = [ -2.8    2.0   -1.8
       -2.4   -2.0    0.8
        1.1    1.7   -1.0 ];

 B = [ -0.8    0.5    0
        0      0.7    2.3
       -0.3   -0.1    0.5 ];

 C = [ -0.1    0     -0.3
        0.9    0.5    1.2
        0.1   -0.1    1.9 ];

 D = [ -0.5    0      0
        0.1    0      0.3
       -0.8    0      0   ];

 x_0 = [1, 2, 3];

 sysc = ss (A, B, C, D);

 [yc, tc, xc] = initial (sysc, x_0, 0.2, 0.1);
 initial_c = [yc, tc, xc];

 sysd = c2d (sysc, 2);

 [yd, td, xd] = initial (sysd, x_0, 4);
 initial_d = [yd, td, xd];

 ## expected values computed by the "dark side"

 yc_exp = [ -1.0000    5.5000    5.6000
            -0.9872    5.0898    5.7671
            -0.9536    4.6931    5.7598 ];

 tc_exp = [  0.0000
             0.1000
             0.2000 ];

 xc_exp = [  1.0000    2.0000    3.0000
             0.5937    1.6879    3.0929
             0.2390    1.5187    3.0988 ];

 initial_c_exp = [yc_exp, tc_exp, xc_exp];

 yd_exp = [ -1.0000    5.5000    5.6000
            -0.6550    3.1673    4.2228
            -0.5421    2.6186    3.4968 ];

 td_exp = [  0
             2
             4 ];

 xd_exp = [  1.0000    2.0000    3.0000
            -0.4247    1.5194    2.3249
            -0.3538    1.2540    1.9250 ];

 initial_d_exp = [yd_exp, td_exp, xd_exp];

!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    initial_c = [](0x0)
    initial_c_exp = [](0x0)
    initial_d = [](0x0)
    initial_d_exp = [](0x0)
  ***** assert (issample (1))
!!!!! test failed
/Users/lukas/control/src/is_real_scalar.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_scalar.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_scalar.oct
  Reason: image not found
  ***** shared margin_c, margin_c_exp, margin_d, margin_d_exp
 sysc = tf ([24], [1, 6, 11, 6]);
 [gamma_c, phi_c, w_gamma_c, w_phi_c] = margin (sysc);
 sysd = c2d (sysc, 0.3);
 [gamma_d, phi_d, w_gamma_d, w_phi_d] = margin (sysd);

 margin_c = [gamma_c, phi_c, w_gamma_c, w_phi_c];
 margin_d = [gamma_d, phi_d, w_gamma_d, w_phi_d];

 ## results from this implementation and the "dark side" diverge
 ## from the third digit after the decimal point on

 gamma_c_exp = 2.50;
 phi_c_exp = 35.43;
 w_gamma_c_exp = 3.32;
 w_phi_c_exp = 2.06;

 gamma_d_exp = 1.41;
 phi_d_exp = 18.60;
 w_gamma_d_exp = 2.48;
 w_phi_d_exp = 2.04;

 margin_c_exp = [gamma_c_exp, phi_c_exp, w_gamma_c_exp, w_phi_c_exp];
 margin_d_exp = [gamma_d_exp, phi_d_exp, w_gamma_d_exp, w_phi_d_exp];

!!!!! test failed
/Users/lukas/control/src/is_real_vector.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_vector.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_vector.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    margin_c = [](0x0)
    margin_c_exp = [](0x0)
    margin_d = [](0x0)
    margin_d_exp = [](0x0)
  ***** assert (obsv ([1, 0; 0, -0.5], [8, 8]), [8, 8; 8, -4]);
!!!!! test failed
/Users/lukas/control/src/is_real_square_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_square_matrix.oct, 2): Library not 
loaded: /opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_square_matrix.oct
  Reason: image not found
  ***** shared sv_exp, w_exp, sv_obs, w_obs
 A = [1, 2; 3, 4];
 B = [5, 6; 7, 8];
 C = [4, 3; 2, 1];
 D = [8, 7; 6, 5];
 w = [2, 3, 4];
 sv_exp = [7.9176, 8.6275, 9.4393;
           0.6985, 0.6086, 0.5195];
 w_exp = [2; 3; 4];
 [sv_obs, w_obs] = sigma (ss (A, B, C, D), w);
!!!!! test failed
/Users/lukas/control/src/is_real_matrix.oct: failed to load: 
dlopen(/Users/lukas/control/src/is_real_matrix.oct, 2): Library not loaded: 
/opt/local/lib/octave/3.6.0/liboctinterp.1.dylib
  Referenced from: /Users/lukas/control/src/is_real_matrix.oct
  Reason: image not found
shared variables 
  scalar structure containing the fields:

    sv_exp = [](0x0)
    w_exp = [](0x0)
    sv_obs = [](0x0)
    w_obs = [](0x0)
octave:2> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]