summaryrefslogtreecommitdiff
path: root/modules/cacsd/help/en_US/dhinf.xml
blob: 7d0bf512720988ffb6df262f243a8dfe33a77471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) INRIA - 
 * 
 * This file must be used under the terms of the CeCILL.
 * This source file is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.  The terms
 * are also available at    
 * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
 *
 -->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="dhinf">
    <refnamediv>
        <refname>dhinf</refname>
        <refpurpose>H_infinity design of discrete-time systems</refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Calling Sequence</title>
        <synopsis>[AK,BK,CK,DK,(RCOND)] = dishin(A,B,C,D,ncon,nmeas,gamma)</synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Arguments</title>
        <variablelist>
            <varlistentry>
                <term>A</term>
                <listitem>
                    <para>the n-by-n system state matrix A.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>B</term>
                <listitem>
                    <para>the n-by-m system input matrix B.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>C</term>
                <listitem>
                    <para>the p-by-n system output matrix C.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>D</term>
                <listitem>
                    <para>the p-by-m system matrix D.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>ncon</term>
                <listitem>
                    <para>the number of control inputs. m &gt;= ncon &gt;= 0, p-nmeas &gt;= ncon.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>nmeas</term>
                <listitem>
                    <para>the number of measurements. p &gt;= nmeas &gt;= 0, m-ncon &gt;= nmeas.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>gamma</term>
                <listitem>
                    <para>
                        the parameter gamma used in <literal>H_infinity</literal> design. It is assumed that gamma is sufficiently large so that the controller is admissible. gamma &gt;= 0.
                    </para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>AK</term>
                <listitem>
                    <para>the n-by-n controller state matrix AK.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>BK</term>
                <listitem>
                    <para>the n-by-nmeas controller input matrix BK.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>CK</term>
                <listitem>
                    <para>the ncon-by-n controller output matrix CK.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>DK</term>
                <listitem>
                    <para>the ncon-by-nmeas controller matrix DK.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>RCOND</term>
                <listitem>
                    <para>a vector containing estimates of the reciprocal condition numbers of the matrices which are to be inverted and estimates of the reciprocal condition numbers of the Riccati equations which have to be solved during the computation of the controller. (See the description of the algorithm in [1].)</para>
                    <variablelist>
                        <varlistentry>
                            <term>RCOND</term>
                            <listitem>
                                <para>(1) contains the reciprocal condition number of the  matrix R3,</para>
                            </listitem>
                        </varlistentry>
                        <varlistentry>
                            <term>RCOND</term>
                            <listitem>
                                <para>(2) contains the reciprocal condition number of the  matrix R1 - R2'*inv(R3)*R2</para>
                            </listitem>
                        </varlistentry>
                        <varlistentry>
                            <term>RCOND</term>
                            <listitem>
                                <para>(3) contains the reciprocal condition number of the matrix V21,</para>
                            </listitem>
                        </varlistentry>
                        <varlistentry>
                            <term>RCOND</term>
                            <listitem>
                                <para>(4) contains the reciprocal condition number of the   matrix St3,</para>
                            </listitem>
                        </varlistentry>
                        <varlistentry>
                            <term>RCOND</term>
                            <listitem>
                                <para>(5) contains the reciprocal condition number of the  matrix V12,</para>
                            </listitem>
                        </varlistentry>
                        <varlistentry>
                            <term>RCOND</term>
                            <listitem>
                                <para>(6) contains the reciprocal condition number of the matrix Im2 + DKHAT*D22,</para>
                            </listitem>
                        </varlistentry>
                        <varlistentry>
                            <term>RCOND</term>
                            <listitem>
                                <para>(7) contains the reciprocal condition number of the  X-Riccati equation,</para>
                            </listitem>
                        </varlistentry>
                        <varlistentry>
                            <term>RCOND</term>
                            <listitem>
                                <para>(8) contains the reciprocal condition number of the  Z-Riccati equation.</para>
                            </listitem>
                        </varlistentry>
                    </variablelist>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Description</title>
        <para>
            <literal>[AK,BK,CK,DK,(RCOND)] = dhinf(A,B,C,D,ncon,nmeas, gamma)</literal> 
            To compute the matrices of an H-infinity (sub)optimal n-state
            controller
        </para>
        <programlisting role=""><![CDATA[ 
    | AK | BK |
K = |----|----|,
    | CK | DK |
 ]]></programlisting>
        <para>
            for the discrete-time system
        </para>
        <programlisting role=""><![CDATA[ 
    | A  | B1  B2  |   | A | B |
P = |----|---------| = |---|---|,
    | C1 | D11 D12 |   | C | D | 
    | C2 | D21 D22 |
 ]]></programlisting>
        <para>
            and for a given value of gamma, where B2 has column size of the
            number of control inputs (ncon) and C2 has row size of the number
            of measurements (nmeas) being provided to the controller.
        </para>
    </refsection>
    <refsection>
        <title>References</title>
        <para>
            [1] P.Hr. Petkov, D.W. Gu and M.M. Konstantinov. Fortran 77 routines        for Hinf and H2 design of linear discrete-time control systems.        Report99-8, Department of Engineering, Leicester University,        April 1999.
        </para>
    </refsection>
    <refsection>
        <title>Examples</title>
        <programlisting role="example"><![CDATA[ 
//example from Niconet report SLWN1999-12
//Hinf
A=[-0.7  0    0.3  0   -0.5 -0.1
   -0.6  0.2 -0.4 -0.3  0    0
   -0.5  0.7 -0.1  0    0   -0.8
   -0.7  0    0   -0.5 -1    0
    0    0.3  0.6 -0.9  0.1 -0.4
    0.5 -0.8  0    0    0.2 -0.9];
B=[-1 -2 -2  1  0
    1  0  1 -2  1
   -3 -4  0  2 -2
    1 -2  1  0 -1
    0  1 -2  0  3
    1  0  3 -1 -2];
C=[ 1 -1  2 -2  0 -3
   -3  0  1 -1  1  0
    0  2  0 -4  0 -2
    1 -3  0  0  3  1
    0  1 -2  1  0 -2];
D=[1 -1 -2  0  0
   0  1  0  1  0
   2 -1 -3  0  1
   0  1  0  1 -1
   0  0  1  2  1];

ncon=2
nmeas=2
gam=111.30;
[AK,BK,CK,DK] = dhinf(A,B,C,D,ncon,nmeas,gam)
 ]]></programlisting>
    </refsection>
    <refsection role="see also">
        <title>See Also</title>
        <simplelist type="inline">
            <member>
                <link linkend="hinf">hinf</link>
            </member>
            <member>
                <link linkend="h_inf">h_inf</link>
            </member>
        </simplelist>
    </refsection>
</refentry>