root/library/doc/html/classbdm_1_1LQG.html @ 619

Revision 617, 18.8 kB (checked in by smidl, 15 years ago)

simulator + doc

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<title>mixpp: bdm::LQG Class Reference</title>
6<link href="tabs.css" rel="stylesheet" type="text/css"/>
7<link href="doxygen.css" rel="stylesheet" type="text/css"/>
8</head>
9<body>
10<!-- Generated by Doxygen 1.6.1 -->
11<script type="text/javascript">
12<!--
13function changeDisplayState (e){
14  var num=this.id.replace(/[^[0-9]/g,'');
15  var button=this.firstChild;
16  var sectionDiv=document.getElementById('dynsection'+num);
17  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
18    sectionDiv.style.display='block';
19    button.src='open.gif';
20  }else{
21    sectionDiv.style.display='none';
22    button.src='closed.gif';
23  }
24}
25function initDynSections(){
26  var divs=document.getElementsByTagName('div');
27  var sectionCounter=1;
28  for(var i=0;i<divs.length-1;i++){
29    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
30      var header=divs[i];
31      var section=divs[i+1];
32      var button=header.firstChild;
33      if (button!='IMG'){
34        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
35        button=document.createElement('img');
36        divs[i].insertBefore(button,divs[i].firstChild);
37      }
38      header.style.cursor='pointer';
39      header.onclick=changeDisplayState;
40      header.id='dynheader'+sectionCounter;
41      button.src='closed.gif';
42      section.id='dynsection'+sectionCounter;
43      section.style.display='none';
44      section.style.marginLeft='14px';
45      sectionCounter++;
46    }
47  }
48}
49window.onload = initDynSections;
50-->
51</script>
52<div class="navigation" id="top">
53  <div class="tabs">
54    <ul>
55      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
56      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
57      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
58      <li><a href="files.html"><span>Files</span></a></li>
59    </ul>
60  </div>
61  <div class="tabs">
62    <ul>
63      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
64      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
65      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
66      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
67    </ul>
68  </div>
69  <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1LQG.html">LQG</a>
70  </div>
71</div>
72<div class="contents">
73<h1>bdm::LQG Class Reference</h1><!-- doxytag: class="bdm::LQG" --><!-- doxytag: inherits="bdm::Designer" --><hr/><a name="_details"></a><h2>Detailed Description</h2>
74<p>Linear Quadratic Gaussian designer for constant penalizations and constant target Its internals are very close to <a class="el" href="classbdm_1_1Kalman.html" title="Common abstract base for Kalman filters.">Kalman</a> estimator </p>
75
76<p><code>#include &lt;<a class="el" href="ctrlbase_8h_source.html">ctrlbase.h</a>&gt;</code></p>
77
78<p><a href="classbdm_1_1LQG-members.html">List of all members.</a></p>
79<table border="0" cellpadding="0" cellspacing="0">
80<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
81<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad70ccc26e555b7f96c778a08b0d2153e"></a><!-- doxytag: member="bdm::LQG::set_system" ref="ad70ccc26e555b7f96c778a08b0d2153e" args="(shared_ptr&lt; StateSpace&lt; fsqmat &gt; &gt; S0)" -->
82void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#ad70ccc26e555b7f96c778a08b0d2153e">set_system</a> (<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1StateSpace.html">StateSpace</a>&lt; <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &gt; &gt; S0)</td></tr>
83<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">set system parameters from given matrices <br/></td></tr>
84<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe34f68bc868096df1473487b920bae3"></a><!-- doxytag: member="bdm::LQG::set_control_parameters" ref="abe34f68bc868096df1473487b920bae3" args="(const mat &amp;Qy0, const mat &amp;Qu0, const vec &amp;y_req0, int horizon0)" -->
85void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#abe34f68bc868096df1473487b920bae3">set_control_parameters</a> (const mat &amp;Qy0, const mat &amp;Qu0, const vec &amp;y_req0, int horizon0)</td></tr>
86<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">set penalization matrices and control horizon <br/></td></tr>
87<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#aec1a44c57a4569335a943462b35c3156">initialize</a> ()</td></tr>
88<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">set system parameters from <a class="el" href="classbdm_1_1Kalman.html" title="Common abstract base for Kalman filters.">Kalman</a> filter  <a href="#aec1a44c57a4569335a943462b35c3156"></a><br/></td></tr>
89<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a96c8fb67798ccd783467fcb607296954"></a><!-- doxytag: member="bdm::LQG::validate" ref="a96c8fb67798ccd783467fcb607296954" args="()" -->
90void&nbsp;</td><td class="memItemRight" valign="bottom"><b>validate</b> ()</td></tr>
91<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5016aebbb654a0e3d653b8485e0ea86c"></a><!-- doxytag: member="bdm::LQG::update_state" ref="a5016aebbb654a0e3d653b8485e0ea86c" args="()" -->
92virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a5016aebbb654a0e3d653b8485e0ea86c">update_state</a> ()</td></tr>
93<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">function for future use which is called at each time td; Should call <a class="el" href="classbdm_1_1LQG.html#aec1a44c57a4569335a943462b35c3156" title="set system parameters from Kalman filter">initialize()</a>! <br/></td></tr>
94<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="addc5444b092fdb36239f83ab1ae85805"></a><!-- doxytag: member="bdm::LQG::ricatti_step" ref="addc5444b092fdb36239f83ab1ae85805" args="()" -->
95void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#addc5444b092fdb36239f83ab1ae85805">ricatti_step</a> ()</td></tr>
96<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">redesign one step of the <br/></td></tr>
97<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae8df589bbdbdd40515f837c9c9560ed8"></a><!-- doxytag: member="bdm::LQG::redesign" ref="ae8df589bbdbdd40515f837c9c9560ed8" args="()" -->
98void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#ae8df589bbdbdd40515f837c9c9560ed8">redesign</a> ()</td></tr>
99<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redesign control strategy. <br/></td></tr>
100<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd673ed2fee4289c212e03df084e8af5"></a><!-- doxytag: member="bdm::LQG::apply" ref="abd673ed2fee4289c212e03df084e8af5" args="(const vec &amp;state, const vec &amp;ukm)" -->
101vec&nbsp;</td><td class="memItemRight" valign="bottom"><b>apply</b> (const vec &amp;state, const vec &amp;ukm)</td></tr>
102<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a334668204e01d468fe107780d10d2bd8"></a><!-- doxytag: member="bdm::LQG::apply" ref="a334668204e01d468fe107780d10d2bd8" args="(const vec &amp;cond)" -->
103virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Designer.html#a334668204e01d468fe107780d10d2bd8">apply</a> (const vec &amp;cond)</td></tr>
104<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">apply control strategy to obtain control input <br/></td></tr>
105<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
106<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9575232a3b04933e6b4c4299bf1bfe15"></a><!-- doxytag: member="bdm::LQG::S" ref="a9575232a3b04933e6b4c4299bf1bfe15" args="" -->
107<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1StateSpace.html">StateSpace</a>&lt; <a class="el" href="classbdm_1_1fsqmat.html">fsqmat</a> &gt; &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a9575232a3b04933e6b4c4299bf1bfe15">S</a></td></tr>
108<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classbdm_1_1StateSpace.html" title="Basic elements of linear state-space model.">StateSpace</a> model from which we read data. <br/></td></tr>
109<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aad002e3dc31c59db7f286b00a8e2fc65"></a><!-- doxytag: member="bdm::LQG::y_req" ref="aad002e3dc31c59db7f286b00a8e2fc65" args="" -->
110vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#aad002e3dc31c59db7f286b00a8e2fc65">y_req</a></td></tr>
111<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">required value of the output y at time t (assumed constant) <br/></td></tr>
112<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8dc7e6ca7949ded1d94ccd78cb8bb2da"></a><!-- doxytag: member="bdm::LQG::u_req" ref="a8dc7e6ca7949ded1d94ccd78cb8bb2da" args="" -->
113vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a8dc7e6ca7949ded1d94ccd78cb8bb2da">u_req</a></td></tr>
114<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">required value of the output y at time t (assumed constant) <br/></td></tr>
115<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae770d283502cf4da978d1d8523309869"></a><!-- doxytag: member="bdm::LQG::horizon" ref="ae770d283502cf4da978d1d8523309869" args="" -->
116int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#ae770d283502cf4da978d1d8523309869">horizon</a></td></tr>
117<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Control horizon, set to maxint for infinite horizons. <br/></td></tr>
118<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a484963959d51059d73d9c6174782cc2f"></a><!-- doxytag: member="bdm::LQG::Qy" ref="a484963959d51059d73d9c6174782cc2f" args="" -->
119mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a484963959d51059d73d9c6174782cc2f">Qy</a></td></tr>
120<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">penalization matrix Qy <br/></td></tr>
121<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a13f14aea28c7f7b074779ece7df5e748"></a><!-- doxytag: member="bdm::LQG::Qu" ref="a13f14aea28c7f7b074779ece7df5e748" args="" -->
122mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a13f14aea28c7f7b074779ece7df5e748">Qu</a></td></tr>
123<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">penalization matrix Qu <br/></td></tr>
124<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6c9fa6d9bb0be47ac5ed9183eb38562e"></a><!-- doxytag: member="bdm::LQG::td" ref="a6c9fa6d9bb0be47ac5ed9183eb38562e" args="" -->
125int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a6c9fa6d9bb0be47ac5ed9183eb38562e">td</a></td></tr>
126<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">time of the design step - from horizon-&gt;0 <br/></td></tr>
127<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad78bb29a213eef033a9657ec2f592e80"></a><!-- doxytag: member="bdm::LQG::L" ref="ad78bb29a213eef033a9657ec2f592e80" args="" -->
128mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#ad78bb29a213eef033a9657ec2f592e80">L</a></td></tr>
129<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">controller parameters <br/></td></tr>
130<tr><td colspan="2"><div class="groupHeader">temporary storage for ricatti - use initialize</div></td></tr>
131<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpb642745e6044566e5a5d79fb42ec1d82"></a> convenience parameters </p>
132<br/><br/></div></td></tr>
133<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ace3c087c11fa4d50f63d2027be572394"></a><!-- doxytag: member="bdm::LQG::dimx" ref="ace3c087c11fa4d50f63d2027be572394" args="" -->
134int&nbsp;</td><td class="memItemRight" valign="bottom"><b>dimx</b></td></tr>
135<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a753e909ac3694cde54b4fc718e24fa09"></a><!-- doxytag: member="bdm::LQG::dimy" ref="a753e909ac3694cde54b4fc718e24fa09" args="" -->
136int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a753e909ac3694cde54b4fc718e24fa09">dimy</a></td></tr>
137<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">convenience parameters <br/></td></tr>
138<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aff701d81aa4f32e0a07a5910f06c8969"></a><!-- doxytag: member="bdm::LQG::dimu" ref="aff701d81aa4f32e0a07a5910f06c8969" args="" -->
139int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#aff701d81aa4f32e0a07a5910f06c8969">dimu</a></td></tr>
140<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">convenience parameters <br/></td></tr>
141<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3f7d31ad976ed1debeeda12949048909"></a><!-- doxytag: member="bdm::LQG::pr" ref="a3f7d31ad976ed1debeeda12949048909" args="" -->
142mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a3f7d31ad976ed1debeeda12949048909">pr</a></td></tr>
143<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">parameters <br/></td></tr>
144<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a98203a62e12acc13ced7ef22e4ac4255"></a><!-- doxytag: member="bdm::LQG::qux" ref="a98203a62e12acc13ced7ef22e4ac4255" args="" -->
145mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a98203a62e12acc13ced7ef22e4ac4255">qux</a></td></tr>
146<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">penalization <br/></td></tr>
147<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0fc6ec35bd9e5f99192b5ff7b0257aef"></a><!-- doxytag: member="bdm::LQG::qyx" ref="a0fc6ec35bd9e5f99192b5ff7b0257aef" args="" -->
148mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a0fc6ec35bd9e5f99192b5ff7b0257aef">qyx</a></td></tr>
149<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">penalization <br/></td></tr>
150<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5fc6fe8a5205a1698fb319b58315671b"></a><!-- doxytag: member="bdm::LQG::s" ref="a5fc6fe8a5205a1698fb319b58315671b" args="" -->
151mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a5fc6fe8a5205a1698fb319b58315671b">s</a></td></tr>
152<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">internal quadratic form <br/></td></tr>
153<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab29c3dfff52b54e44a793d62afbb5a63"></a><!-- doxytag: member="bdm::LQG::qy" ref="ab29c3dfff52b54e44a793d62afbb5a63" args="" -->
154mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#ab29c3dfff52b54e44a793d62afbb5a63">qy</a></td></tr>
155<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">penalization <br/></td></tr>
156<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f20c8ff99875e3009f2e427247c4c78"></a><!-- doxytag: member="bdm::LQG::hqy" ref="a0f20c8ff99875e3009f2e427247c4c78" args="" -->
157mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a0f20c8ff99875e3009f2e427247c4c78">hqy</a></td></tr>
158<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">pre_qr part <br/></td></tr>
159<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae6c9db2abc7a3290f8e2bb851683d7a0"></a><!-- doxytag: member="bdm::LQG::pre_qr" ref="ae6c9db2abc7a3290f8e2bb851683d7a0" args="" -->
160mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#ae6c9db2abc7a3290f8e2bb851683d7a0">pre_qr</a></td></tr>
161<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">pre qr matrix <br/></td></tr>
162<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a13eb495eb5e3c3477e2ebaa4640a642e"></a><!-- doxytag: member="bdm::LQG::post_qr" ref="a13eb495eb5e3c3477e2ebaa4640a642e" args="" -->
163mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG.html#a13eb495eb5e3c3477e2ebaa4640a642e">post_qr</a></td></tr>
164<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">post qr matrix <br/></td></tr>
165</table>
166<hr/><h2>Member Function Documentation</h2>
167<a class="anchor" id="aec1a44c57a4569335a943462b35c3156"></a><!-- doxytag: member="bdm::LQG::initialize" ref="aec1a44c57a4569335a943462b35c3156" args="()" -->
168<div class="memitem">
169<div class="memproto">
170      <table class="memname">
171        <tr>
172          <td class="memname">void bdm::LQG::initialize </td>
173          <td>(</td>
174          <td class="paramname"></td>
175          <td>&nbsp;)&nbsp;</td>
176          <td></td>
177        </tr>
178      </table>
179</div>
180<div class="memdoc">
181
182<p>set system parameters from <a class="el" href="classbdm_1_1Kalman.html" title="Common abstract base for Kalman filters.">Kalman</a> filter </p>
183<p>refresh temporary storage - inefficient can be improved </p>
184
185<p>References <a class="el" href="ctrlbase_8h_source.html#l00062">dimu</a>, <a class="el" href="ctrlbase_8h_source.html#l00060">dimy</a>, <a class="el" href="ctrlbase_8h_source.html#l00075">hqy</a>, <a class="el" href="ctrlbase_8h_source.html#l00079">post_qr</a>, <a class="el" href="ctrlbase_8h_source.html#l00065">pr</a>, <a class="el" href="ctrlbase_8h_source.html#l00077">pre_qr</a>, <a class="el" href="ctrlbase_8h_source.html#l00050">Qu</a>, <a class="el" href="ctrlbase_8h_source.html#l00067">qux</a>, <a class="el" href="ctrlbase_8h_source.html#l00048">Qy</a>, <a class="el" href="ctrlbase_8h_source.html#l00069">qyx</a>, <a class="el" href="ctrlbase_8h_source.html#l00071">s</a>, and <a class="el" href="ctrlbase_8h_source.html#l00039">S</a>.</p>
186
187<p>Referenced by <a class="el" href="ctrlbase_8cpp_source.html#l00014">set_control_parameters()</a>.</p>
188
189</div>
190</div>
191<hr/>The documentation for this class was generated from the following files:<ul>
192<li><a class="el" href="ctrlbase_8h_source.html">ctrlbase.h</a></li>
193<li>ctrlbase.cpp</li>
194</ul>
195</div>
196<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Sep 15 23:42:48 2009 for mixpp by&nbsp;
197<a href="http://www.doxygen.org/index.html">
198<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
199</body>
200</html>
Note: See TracBrowser for help on using the browser.