-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathslicot_sb02od.html
258 lines (199 loc) · 8.19 KB
/
slicot_sb02od.html
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<!--
SAME AS NELSON SOFTWARE
-->
<head>
<meta name="generator" content=
"HTML Generated by Nelson"/>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" href="mono-blue.css" type="text/css" />
<script src = "highlight.pack.js" type = "text/javascript">
</script>
<script type = "text/javascript">hljs.highlightAll();</script>
</script>
<meta http-equiv="Content-Type" content = "text/html; charset=utf-8" />
<title>slicot_sb02od</title>
</head>
<body>
<div class = "manualnavbar">
<table width = "100%"><tr>
<td width="30%" class="previous">
<span class="top"><a href="slicot_sb01bd.html"><< slicot_sb01bd</a></span>
</td>
<td width="40%" class="center">
<span class="top"><a href="chapter_slicot.html">Subroutine Library In COntrol Theory</a></span>
</td>
<td width = "30%" class = "next">
<span class = "next"><a href = "slicot_sb03md.html">slicot_sb03md >></a></span>
</td>
</tr></table>
<hr />
<h1 class="refname">slicot_sb02od</h1>
<hr/>
<h3>Solution of continuous- or discrete-time algebraic Riccati equations (generalized Schur vectors method).</h3>
<hr/>
<h3>Syntax</h3>
<hr/>
<table summary="syntax" style="width:50%">
<tr>
<td>[RCOND, X, ALFAR, ALFAI, BETA, S, T, U, INFO] = slicot_sb02od(DICO, JOBB, FACT, UPLO, JOBL, SORT, P, A, B, Q, R, L, TOL)</td>
</tr>
</table>
<h3>Input argument</h3>
<hr/>
<dl>
<dt><span class="term">DICO</span></dt>
<dd>
<p class="para">Specifies the type of Riccati equation to be solved as follows: = 'C': continuous-time case; 'D': discrete-time case.</p>
</dd>
<dt><span class="term">JOBB</span></dt>
<dd>
<p class="para">Specifies whether or not the matrix G is given, instead of the matrices B and R, as follows: = 'B': B and R are given; = 'G': G is given.</p>
</dd>
<dt><span class="term">FACT</span></dt>
<dd>
<p class="para">Specifies whether or not the matrices Q and/or R (if JOBB = 'B') are factored, as follows: = 'N': Not factored, Q and R are given; = 'C': C is given, and Q = C'C; = 'D': D is given, and R = D'D; = 'B': Both factors C and D are given, Q = C'C, R = D'D.</p>
</dd>
<dt><span class="term">UPLO</span></dt>
<dd>
<p class="para">If JOBB = 'G', or FACT = 'N', specifies which triangle of the matrices G and Q (if FACT = 'N'), or Q and R (if JOBB = 'B'), is stored, as follows: = 'U': Upper triangle is stored; = 'L': Lower triangle is stored.</p>
</dd>
<dt><span class="term">JOBL</span></dt>
<dd>
<p class="para">Specifies whether or not the matrix L is zero, as follows: = 'Z': L is zero; = 'N': L is nonzero. JOBL is not used if JOBB = 'G' and JOBL = 'Z' is assumed. SLICOT Library routine SB02MT should be called just before SB02OD, for obtaining the results when JOBB = 'G' and JOBL = 'N'.</p>
</dd>
<dt><span class="term">SORT</span></dt>
<dd>
<p class="para">Specifies which eigenvalues should be obtained in the top of the generalized Schur form, as follows: = 'S': Stable eigenvalues come first;= 'U': Unstable eigenvalues come first.</p>
</dd>
<dt><span class="term">P</span></dt>
<dd>
<p class="para">The number of system outputs. If FACT = 'C' or 'D' or 'B', P is the number of rows of the matrices C and/or D. P >= 0. Otherwise, P is not used.</p>
</dd>
<dt><span class="term">A</span></dt>
<dd>
<p class="para">The leading N-by-N part of this array must contain the state matrix A of the system.</p>
</dd>
<dt><span class="term">B</span></dt>
<dd>
<p class="para">If JOBB = 'B', the leading N-by-M part of this array must contain the input matrix B of the system.</p>
</dd>
<dt><span class="term">Q</span></dt>
<dd>
<p class="para">If FACT = 'N' or 'D', the leading N-by-N upper triangular part (if UPLO = 'U') or lower triangular part (if UPLO = 'L') of this array must contain the upper triangular part or lower triangular part, respectively, of the symmetric state weighting matrix Q. The stricly lower triangular part (if UPLO = 'U') or stricly upper triangular part (if UPLO = 'L') is not referenced.</p>
</dd>
<dt><span class="term">R</span></dt>
<dd>
<p class="para">If FACT = 'N' or 'C', the leading M-by-M upper triangular part (if UPLO = 'U') or lower triangular part (if UPLO = 'L') of this array must contain the upper triangular part or lower triangular part, respectively, of the symmetric input weighting matrix R. The stricly lower triangular part (if UPLO = 'U') or stricly upper triangular part (if UPLO = 'L') is not referenced.</p>
</dd>
<dt><span class="term">L</span></dt>
<dd>
<p class="para">If JOBL = 'N' (and JOBB = 'B'), the leading N-by-M part of this array must contain the cross weighting matrix L. This part is modified internally, but is restored on exit. If JOBL = 'Z' or JOBB = 'G', this array is not referenced.</p>
</dd>
<dt><span class="term">TOL</span></dt>
<dd>
<p class="para">The tolerance to be used to test for near singularity of the original matrix pencil, specifically of the triangular factor obtained during the reduction process.</p>
</dd>
</dl>
<h3>Output argument</h3>
<hr/>
<dl>
<dt><span class="term">RCOND</span></dt>
<dd>
<p class="para">An estimate of the reciprocal of the condition number (in the 1-norm) of the N-th order system of algebraic equations from which the solution matrix X is obtained.</p>
</dd>
<dt><span class="term">X</span></dt>
<dd>
<p class="para">The leading N-by-N part of this array contains the solution matrix X of the problem.</p>
</dd>
<dt><span class="term">ALFAR, ALFAI, BETA</span></dt>
<dd>
<p class="para">The generalized eigenvalues of the 2N-by-2N matrix pair, ordered as specified by SORT (if INFO = 0).</p>
</dd>
<dt><span class="term">S</span></dt>
<dd>
<p class="para">The leading 2N-by-2N part of this array contains the ordered real Schur form S of the first matrix in the reduced matrix pencil associated to the optimal problem, or of the corresponding Hamiltonian matrix, if DICO = 'C' and JOBB = 'G'.</p>
</dd>
<dt><span class="term">T</span></dt>
<dd>
<p class="para">If DICO = 'D' or JOBB = 'B', the leading 2N-by-2N part of this array contains the ordered upper triangular form T of the second matrix in the reduced matrix pencil associated to the optimal problem.</p>
</dd>
<dt><span class="term">U</span></dt>
<dd>
<p class="para">The leading 2N-by-2N part of this array contains the right transformation matrix U which reduces the 2N-by-2N matrix pencil to the ordered generalized real Schur form (S,T), or the Hamiltonian matrix to the ordered real Schur form S, if DICO = 'C' and JOBB = 'G'.</p>
</dd>
<dt><span class="term">INFO</span></dt>
<dd>
<p class="para">= 0: successful exit;</p>
</dd>
</dl>
<h3>Description</h3>
<hr/>
<p></p>
<p>Solution of continuous- or discrete-time algebraic Riccati equations (generalized Schur vectors method)</p>
<p>The routine uses the method of deflating subspaces, based on reordering the eigenvalues in a generalized Schur matrix pair.</p>
<p>A standard eigenproblem is solved in the continuous-time case if G is given.</p>
<h3>Used function(s)</h3>
<hr/>
SB02OD
<h3>Bibliography</h3>
<hr/>
http://slicot.org/objects/software/shared/doc/SB02OD.html
<h3>Example</h3>
<hr/>
<pre>
<code class = "nelson">N = 2;
M = 1;
P = 3;
TOL = 0.0;
DICO = 'C';
JOBB = 'B';
FACT = 'B';
UPLO = 'U';
JOBL = 'Z';
SORT = 'S';
A = [0.0 1.0;
0.0 0.0];
B = [0.0; 1.0];
Q = [1.0 0.0;
0.0 1.0;
0.0 0.0];
R = [0.0;
0.0;
1.0];
L = zeros(N, M);
[RCOND, X, ALFAR, ALFAI, BETA, S, T, U, INFO] = slicot_sb02od(DICO, JOBB, FACT, UPLO, JOBL, SORT, P, A, B, Q, R, L, TOL)
</code>
</pre>
<h3>History</h3>
<hr/>
<table summary = "history" style="width:50%">
<tr>
<th>Version</th>
<th>Description</th>
</tr>
<tr>
<td>1.0.0</td>
<td>initial version</td>
</tr>
</table>
<h3>Author</h3>
<hr/>
<p>SLICOT Documentation</p>
<div class = "manualnavbar">
<table width = "100%"><tr>
<td width="30%" class="previous">
<span class="top"><a href="slicot_sb01bd.html"><< slicot_sb01bd</a></span>
</td>
<td width="40%" class="center">
<span class="top"><a href="chapter_slicot.html">Subroutine Library In COntrol Theory</a></span>
</td>
<td width = "30%" class = "next">
<span class = "next"><a href = "slicot_sb03md.html">slicot_sb03md >></a></span>
</td>
</tr></table>
<hr />
</body>
</html>