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_ARX 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 | <!-- |
---|
13 | function 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 | } |
---|
25 | function 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 | } |
---|
49 | window.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 Page</span></a></li> |
---|
56 | <li><a href="pages.html"><span>Related 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 List</span></a></li> |
---|
64 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
65 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
66 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
67 | </ul> |
---|
68 | </div> |
---|
69 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1LQG__ARX.html">LQG_ARX</a> |
---|
70 | </div> |
---|
71 | </div> |
---|
72 | <div class="contents"> |
---|
73 | <h1>bdm::LQG_ARX Class Reference</h1><!-- doxytag: class="bdm::LQG_ARX" --><!-- doxytag: inherits="bdm::Controller" --> |
---|
74 | <p><a class="el" href="classbdm_1_1Controller.html">Controller</a> using <a class="el" href="classbdm_1_1ARX.html" title="Linear Autoregressive model with Gaussian noise.">ARX</a> model for estimation and <a class="el" href="classbdm_1_1LQG.html">LQG</a> designer for control. |
---|
75 | <a href="#_details">More...</a></p> |
---|
76 | <hr/><a name="_details"></a><h2>Detailed Description</h2> |
---|
77 | <p><a class="el" href="classbdm_1_1Controller.html">Controller</a> using <a class="el" href="classbdm_1_1ARX.html" title="Linear Autoregressive model with Gaussian noise.">ARX</a> model for estimation and <a class="el" href="classbdm_1_1LQG.html">LQG</a> designer for control. </p> |
---|
78 | |
---|
79 | <p><code>#include <<a class="el" href="arx__ctrl_8h_source.html">arx_ctrl.h</a>></code></p> |
---|
80 | |
---|
81 | <p><a href="classbdm_1_1LQG__ARX-members.html">List of all members.</a></p> |
---|
82 | <table border="0" cellpadding="0" cellspacing="0"> |
---|
83 | <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
---|
84 | <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG__ARX.html#aa8b901b37f009400fa68bfdefa473eeb">LQG_ARX</a> ()</td></tr> |
---|
85 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9131f387df9d29d9859bbcdeb7cb504"></a><!-- doxytag: member="bdm::LQG_ARX::initialize" ref="ae9131f387df9d29d9859bbcdeb7cb504" args="()" --> |
---|
86 | void </td><td class="memItemRight" valign="bottom"><b>initialize</b> ()</td></tr> |
---|
87 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a838a63f9481b4bb8055896492a30c0af"></a><!-- doxytag: member="bdm::LQG_ARX::adapt" ref="a838a63f9481b4bb8055896492a30c0af" args="()" --> |
---|
88 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG__ARX.html#a838a63f9481b4bb8055896492a30c0af">adapt</a> ()</td></tr> |
---|
89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">adaptation is to store arx estimates in stsp <br/></td></tr> |
---|
90 | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG__ARX.html#a2c9556d56bb75fc2eb6c0c7d8e9e0145">from_settings</a> (const Settings &set)</td></tr> |
---|
91 | <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classbdm_1_1LQG.html">LQG</a> is defined by quadratic loss function. <a href="#a2c9556d56bb75fc2eb6c0c7d8e9e0145"></a><br/></td></tr> |
---|
92 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8bf38082502020d56dbd48806018774"></a><!-- doxytag: member="bdm::LQG_ARX::adapt" ref="ad8bf38082502020d56dbd48806018774" args="(const vec &data)" --> |
---|
93 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Controller.html#ad8bf38082502020d56dbd48806018774">adapt</a> (const vec &data)</td></tr> |
---|
94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">function processing new observations and adapting control strategy accordingly <br/></td></tr> |
---|
95 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7103224088fcd72bc44eeb08ad5ce180"></a><!-- doxytag: member="bdm::LQG_ARX::ctrlaction" ref="a7103224088fcd72bc44eeb08ad5ce180" args="(const vec &data)" --> |
---|
96 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Controller.html#a7103224088fcd72bc44eeb08ad5ce180">ctrlaction</a> (const vec &data)</td></tr> |
---|
97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">returns designed control action <br/></td></tr> |
---|
98 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa8dfccd2b84552efcdc7f595c021ff77"></a><!-- doxytag: member="bdm::LQG_ARX::from_setting" ref="aa8dfccd2b84552efcdc7f595c021ff77" args="(const Setting &set)" --> |
---|
99 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Controller.html#aa8dfccd2b84552efcdc7f595c021ff77">from_setting</a> (const Setting &set)</td></tr> |
---|
100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method arrange instance properties according the data stored in the Setting structure. <br/></td></tr> |
---|
101 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c5b40a9e65abc1434c8a34c9752e25d"></a><!-- doxytag: member="bdm::LQG_ARX::_urv" ref="a5c5b40a9e65abc1434c8a34c9752e25d" args="()" --> |
---|
102 | const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Controller.html#a5c5b40a9e65abc1434c8a34c9752e25d">_urv</a> ()</td></tr> |
---|
103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br/></td></tr> |
---|
104 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a258f7c6435343b088ed02a304cab99b0"></a><!-- doxytag: member="bdm::LQG_ARX::_yrv" ref="a258f7c6435343b088ed02a304cab99b0" args="()" --> |
---|
105 | const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Controller.html#a258f7c6435343b088ed02a304cab99b0">_yrv</a> ()</td></tr> |
---|
106 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br/></td></tr> |
---|
107 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a51e1fbd42ba80789f31b5bc14068f498"></a><!-- doxytag: member="bdm::LQG_ARX::_drv" ref="a51e1fbd42ba80789f31b5bc14068f498" args="()" --> |
---|
108 | const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Controller.html#a51e1fbd42ba80789f31b5bc14068f498">_drv</a> ()</td></tr> |
---|
109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br/></td></tr> |
---|
110 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::LQG_ARX::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
111 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
112 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr> |
---|
113 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::LQG_ARX::to_setting" ref="a67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
114 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> |
---|
115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr> |
---|
116 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::LQG_ARX::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
117 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br/></td></tr> |
---|
119 | <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> |
---|
120 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae826eb0d2392dfd782d5f213df6288cc"></a><!-- doxytag: member="bdm::LQG_ARX::ar" ref="ae826eb0d2392dfd782d5f213df6288cc" args="" --> |
---|
121 | shared_prt< <a class="el" href="classbdm_1_1ARX.html">ARX</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG__ARX.html#ae826eb0d2392dfd782d5f213df6288cc">ar</a></td></tr> |
---|
122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Internal <a class="el" href="classbdm_1_1ARX.html" title="Linear Autoregressive model with Gaussian noise.">ARX</a> estimator. <br/></td></tr> |
---|
123 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afb08b341bf00588e7aa6aba33db315c9"></a><!-- doxytag: member="bdm::LQG_ARX::lq" ref="afb08b341bf00588e7aa6aba33db315c9" args="" --> |
---|
124 | <a class="el" href="classbdm_1_1LQG.html">LQG</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG__ARX.html#afb08b341bf00588e7aa6aba33db315c9">lq</a></td></tr> |
---|
125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Internal <a class="el" href="classbdm_1_1LQG.html">LQG</a> designer. <br/></td></tr> |
---|
126 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5ddc7af692f2c1b2f04ea903ed966f4"></a><!-- doxytag: member="bdm::LQG_ARX::stsp" ref="ad5ddc7af692f2c1b2f04ea903ed966f4" args="" --> |
---|
127 | sharer_ptr< <a class="el" href="classbdm_1_1StateSpace.html">StateSpace</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1LQG__ARX.html#ad5ddc7af692f2c1b2f04ea903ed966f4">stsp</a></td></tr> |
---|
128 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Intermediate <a class="el" href="classbdm_1_1StateSpace.html" title="Basic elements of linear state-space model.">StateSpace</a> model. <br/></td></tr> |
---|
129 | </table> |
---|
130 | <hr/><h2>Constructor & Destructor Documentation</h2> |
---|
131 | <a class="anchor" id="aa8b901b37f009400fa68bfdefa473eeb"></a><!-- doxytag: member="bdm::LQG_ARX::LQG_ARX" ref="aa8b901b37f009400fa68bfdefa473eeb" args="()" --> |
---|
132 | <div class="memitem"> |
---|
133 | <div class="memproto"> |
---|
134 | <table class="memname"> |
---|
135 | <tr> |
---|
136 | <td class="memname">bdm::LQG_ARX::LQG_ARX </td> |
---|
137 | <td>(</td> |
---|
138 | <td class="paramname"></td> |
---|
139 | <td> ) </td> |
---|
140 | <td><code> [inline]</code></td> |
---|
141 | </tr> |
---|
142 | </table> |
---|
143 | </div> |
---|
144 | <div class="memdoc"> |
---|
145 | <p>Default constructor </p> |
---|
146 | |
---|
147 | </div> |
---|
148 | </div> |
---|
149 | <hr/><h2>Member Function Documentation</h2> |
---|
150 | <a class="anchor" id="a2c9556d56bb75fc2eb6c0c7d8e9e0145"></a><!-- doxytag: member="bdm::LQG_ARX::from_settings" ref="a2c9556d56bb75fc2eb6c0c7d8e9e0145" args="(const Settings &set)" --> |
---|
151 | <div class="memitem"> |
---|
152 | <div class="memproto"> |
---|
153 | <table class="memname"> |
---|
154 | <tr> |
---|
155 | <td class="memname">void bdm::LQG_ARX::from_settings </td> |
---|
156 | <td>(</td> |
---|
157 | <td class="paramtype">const Settings & </td> |
---|
158 | <td class="paramname"> <em>set</em></td> |
---|
159 | <td> ) </td> |
---|
160 | <td><code> [inline]</code></td> |
---|
161 | </tr> |
---|
162 | </table> |
---|
163 | </div> |
---|
164 | <div class="memdoc"> |
---|
165 | |
---|
166 | <p><a class="el" href="classbdm_1_1LQG.html">LQG</a> is defined by quadratic loss function. </p> |
---|
167 | <p class="formulaDsp"> |
---|
168 | <img class="formulaDsp" alt="\[ L(y,u) = (y-y_{req})'Q_y (y-y_{req}) + (u-u_{req})' Q_u (u-u_{req}) \]" src="form_27.png"/> |
---|
169 | </p> |
---|
170 | <p> expected input </p> |
---|
171 | <div class="fragment"><pre class="fragment"> { <span class="keyword">class</span>=<span class="stringliteral">"LQG"</span>; |
---|
172 | arx = {<span class="keyword">class</span>=<span class="stringliteral">"ARX"</span>, ...} <span class="comment">// internal arx model, see </span> |
---|
173 | Qy = (<span class="stringliteral">"matrix"</span>, ...); |
---|
174 | Qu = (<span class="stringliteral">"matrix"</span>, ...); |
---|
175 | yreq = []; <span class="comment">// requested output</span> |
---|
176 | ureq = []; <span class="comment">// requested input value</span> |
---|
177 | } |
---|
178 | </pre></div> |
---|
179 | <p>References <a class="el" href="arx__ctrl_8h_source.html#l00024">ar</a>, and <a class="el" href="user__info_8h_source.html#l00451">bdm::UI::get()</a>.</p> |
---|
180 | |
---|
181 | </div> |
---|
182 | </div> |
---|
183 | <hr/>The documentation for this class was generated from the following file:<ul> |
---|
184 | <li><a class="el" href="arx__ctrl_8h_source.html">arx_ctrl.h</a></li> |
---|
185 | </ul> |
---|
186 | </div> |
---|
187 | <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 27 00:49:05 2009 for mixpp by |
---|
188 | <a href="http://www.doxygen.org/index.html"> |
---|
189 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> |
---|
190 | </body> |
---|
191 | </html> |
---|