{"id":294,"date":"2019-05-18T21:11:02","date_gmt":"2019-05-19T05:11:02","guid":{"rendered":"https:\/\/linearcontrol.info\/fundamentals\/?p=294"},"modified":"2019-05-24T15:37:52","modified_gmt":"2019-05-24T23:37:52","slug":"is-a-proportional-controller-right-for-you-ask-your-control-engineer-part-iii","status":"publish","type":"post","link":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/2019\/05\/18\/is-a-proportional-controller-right-for-you-ask-your-control-engineer-part-iii\/","title":{"rendered":"Is a proportional controller right for you? Ask your control engineer! Part III"},"content":{"rendered":"\n<p>In <a href=\"https:\/\/linearcontrol.info\/fundamentals\/index.php\/2019\/05\/16\/is-a-proportional-controller-right-for-you-ask-your-control-engineer\/\">Part I<\/a> and <a href=\"https:\/\/linearcontrol.info\/fundamentals\/index.php\/2019\/05\/18\/is-a-proportional-controller-right-for-you-ask-your-control-engineer-part-ii\/\">Part II<\/a> of this post we looked into the problem of finding a suitable discrete-time controller when the system being controlled is fast to reach steady-state so that it can be modeled as the single delay<\/p>\n\n\n\n<p>$$y(t) = G u(t &#8211; \\tau), \\quad \\tau &gt; 0.$$<\/p>\n\n\n\n<p>In Part I we showed that a proportional controller is not a good choice and in Part II we found out that, surprisingly, an integral only controller is an excellent choice but requires the use of a gain $\\hat{G}$ that has to match the gain of the system $G$. In the present post we will revisit the design of a dynamic controller with the goal of showing that: <\/p>\n\n\n\n<ol><li>the Smith predictor from Part II also had a zero;<\/li><li>the integral controller is indeed an excellent choice;<\/li><li>the mismatch $\\hat{G} \\neq G$ is not necessarily catastrophic. <\/li><\/ol>\n\n\n\n<!--more-->\n\n\n\n<p>Start with a generic dynamic controller of the form<\/p>\n\n\n\n<p>$$u(t)=-a u(t &#8211; \\tau) + b (\\bar{y}(t) &#8211; y(t)).$$<\/p>\n\n\n\n<p>The Smith predictor is a special case of the above controller in which <\/p>\n\n\n\n<p>$$a = -1, \\quad b = \\hat{G}^{-1}.$$ <\/p>\n\n\n\n<p>Now calculate the following quantity<\/p>\n\n\n\n<p>$$y(t) + a y(t &#8211; \\tau) = G u(t &#8211; \\tau) + a G u(t &#8211; 2 \\tau) = G b \\, e(t-\\tau)$$<\/p>\n\n\n\n<p>and observe that the relationship between $y$ and $e$ is described by the first-order (one delay) difference equation<\/p>\n\n\n\n<p> $$y(t) + a y(t &#8211; \\tau) = G b \\, e(t-\\tau).$$ <\/p>\n\n\n\n<p>This equation represents the open-loop (series) connection of the controller with the system. Because the system had one delay and the controller had another one, one would expect that the relatioship between $y$ and $e$ would have two delays. The fact that it has only one delay is the result of a pole-zero cancellation, which means that the above controller, and therefore the Smith predictor must have a zero. We will look into that in more detail in a future post. <\/p>\n\n\n\n<p>In order to close the loop we need to substitute for the error to obtain<\/p>\n\n\n\n<p> $$y(t) + a y(t &#8211; \\tau) = G b \\, e(t-\\tau) = G b \\, (\\bar{y}(t-\\tau) &#8211; y(t-\\tau))$$ <\/p>\n\n\n\n<p>from which<\/p>\n\n\n\n<p>$$y(t) + (a+Gb) \\, y(t &#8211; \\tau) = G b \\, \\bar{y}(t -\\tau)$$ <\/p>\n\n\n\n<p>Proceeding as in Part I one can conclude that this system is asymptotically stable if<\/p>\n\n\n\n<p>$$|a + G b| &lt; 1.$$<\/p>\n\n\n\n<p>In addition if<\/p>\n\n\n\n<p>$$a=-1,$$<\/p>\n\n\n\n<p>that is if the controller is an integrator, then it also displays asymptotic tracking of constant references because<\/p>\n\n\n\n<p> $$G b \\, \\tilde{y} = \\tilde{y} + (-1+Gb) \\, \\tilde{y} = G b \\, \\bar{y} \\quad \\implies \\quad \\tilde{y} = \\bar{y}.$$  <\/p>\n\n\n\n<p>This property is independent of the choice of $b$ or the value of $G$ as long as<\/p>\n\n\n\n<p>$$|G b -1| &lt; 1$$<\/p>\n\n\n\n<p>The conclusion is that an integrator, that is $a = -1$, is an excellent choice!<\/p>\n\n\n\n<p>Finally, note that the choice $b=\\hat{G}^{-1}$ when $\\hat{G}=G$ leads to<\/p>\n\n\n\n<p>$$G b &#8211; 1=G \\hat{G}^{-1} -1=0$$<\/p>\n\n\n\n<p>so that convergence to the constant reference is as fast as possible. If $\\hat{G}\\neq G$ nothing catastrophic ensues as long as $|G \\hat{G}^{-1} &#8211; 1|&lt;1$. In particular, if<\/p>\n\n\n\n<p>$$G \\geq \\hat{G} &gt; (1\/2) G$$<\/p>\n\n\n\n<p> then $0 \\leq G \\hat{G}^{-1} &#8211; 1 &lt; 1$ so that the closed-loop is stable and without oscillations. If <\/p>\n\n\n\n<p>$$\\hat{G} &gt; G$$ <\/p>\n\n\n\n<p>the closed loop is stable but it now oscillates because $-1 &lt; G \\hat{G}^{-1} &#8211; 1 &lt; 0$.  Values of $\\hat{G} \\leq (1\/2) G$ lead to instability. The conclusion is that as long as $\\hat{G} &gt; (1\/2) G$ then the closed-loop is still asymptotically stable and that if $\\hat{G} \\leq G$ then there will be no oscillations. There also seems to be no danger in overestimating $G$, as long as one can tolerate the oscillations. In fact, the onset of oscillations could even  be used to estimate a suitable value of $\\hat{G}$.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Part I and Part II of this post we looked into the problem of finding a suitable discrete-time controller when the system being controlled is fast to reach steady-state so that it can be modeled as the single delay $$y(t) = G u(t &#8211; \\tau), \\quad \\tau &gt; 0.$$ In Part I we showed &hellip; <a href=\"https:\/\/linearcontrol.info\/fundamentals\/index.php\/2019\/05\/18\/is-a-proportional-controller-right-for-you-ask-your-control-engineer-part-iii\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Is a proportional controller right for you? Ask your control engineer! Part III&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[7],"tags":[17,15,22,23],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/posts\/294"}],"collection":[{"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/comments?post=294"}],"version-history":[{"count":39,"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/posts\/294\/revisions"}],"predecessor-version":[{"id":675,"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/posts\/294\/revisions\/675"}],"wp:attachment":[{"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/media?parent=294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/categories?post=294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/tags?post=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}