{"id":655,"date":"2019-05-24T15:29:45","date_gmt":"2019-05-24T23:29:45","guid":{"rendered":"https:\/\/linearcontrol.info\/fundamentals\/?p=655"},"modified":"2019-06-03T07:24:08","modified_gmt":"2019-06-03T15:24:08","slug":"balance-scales-and-integral-action-part-ii","status":"publish","type":"post","link":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/2019\/05\/24\/balance-scales-and-integral-action-part-ii\/","title":{"rendered":"Balance scales and integral action. Part II"},"content":{"rendered":"\n<p>In a <a href=\"https:\/\/linearcontrol.info\/fundamentals\/index.php\/2019\/05\/24\/balance-scales-and-integral-action\/\">previous post<\/a> we discussed how the principles of operation of a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Weighing_scale\">balance scale<\/a> could be understood as a feedback loop with integral action. We left off after analyzing the impact of measurement disturbances in the loop and mentioned that input disturbances could be used to model &#8220;operator errors.&#8221;<\/p>\n\n\n\n<!--more-->\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright\"><img decoding=\"async\" loading=\"lazy\" width=\"300\" height=\"101\" src=\"https:\/\/i0.wp.com\/linearcontrol.info\/fundamentals\/wp-content\/uploads\/2019\/05\/e6e00de7cd0200edfbe13455240529ca876d3751.jpg?resize=300%2C101&#038;ssl=1\" alt=\"\" class=\"wp-image-654\" srcset=\"https:\/\/i0.wp.com\/linearcontrol.info\/fundamentals\/wp-content\/uploads\/2019\/05\/e6e00de7cd0200edfbe13455240529ca876d3751.jpg?resize=300%2C101&amp;ssl=1 300w, https:\/\/i0.wp.com\/linearcontrol.info\/fundamentals\/wp-content\/uploads\/2019\/05\/e6e00de7cd0200edfbe13455240529ca876d3751.jpg?resize=768%2C259&amp;ssl=1 768w, https:\/\/i0.wp.com\/linearcontrol.info\/fundamentals\/wp-content\/uploads\/2019\/05\/e6e00de7cd0200edfbe13455240529ca876d3751.jpg?resize=1024%2C345&amp;ssl=1 1024w, https:\/\/i0.wp.com\/linearcontrol.info\/fundamentals\/wp-content\/uploads\/2019\/05\/e6e00de7cd0200edfbe13455240529ca876d3751.jpg?resize=1200%2C404&amp;ssl=1 1200w, https:\/\/i0.wp.com\/linearcontrol.info\/fundamentals\/wp-content\/uploads\/2019\/05\/e6e00de7cd0200edfbe13455240529ca876d3751.jpg?w=1583&amp;ssl=1 1583w\" sizes=\"(max-width: 300px) 85vw, 300px\" data-recalc-dims=\"1\" \/><figcaption>Fig. 1.13: Feedback loop with input disturbance<\/figcaption><\/figure><\/div>\n\n\n\n<p>The motivation for considering &#8220;operator errors&#8221; is that it is very likely that a human operating the scale will not be able to produce weights, that is the signal $u$, that are exactly proportional to the error signal $e$. In that case an input disturbance $w$ entering the loop as in Fig. 1.13 can be used to model the &#8220;operator error&#8221; in producing the &#8220;control signal&#8221; $u$.<\/p>\n\n\n\n<p>With the addition of the input disturbance, and following the same reasoning as in <a href=\"https:\/\/linearcontrol.info\/fundamentals\/index.php\/2019\/05\/24\/balance-scales-and-integral-action\/\">Part I of this post<\/a>, it is possible to describe the loop in Fig. 1.13 by the recursive equations<\/p>\n\n\n\n<p>$$y(k+1)=y(k) + u(k) + w(k), \\quad u(k) = K e(k), \\quad e(k) = \\bar{y} &#8211; y(k).$$<\/p>\n\n\n\n<p>As before, it is possible to obtain a recursion to describe the error signal $e$ as in<\/p>\n\n\n\n<p>$$<br> \\begin{aligned}<br>e(k+1) &amp;=\\bar{y} &#8211; y(k+1) \\\\<br>&amp;=  \\bar{y} &#8211; (y(k) +u(k) + w(k)) \\\\<br>&amp;= \\bar{y} &#8211; (\\bar{y}-e(k)) -K e(k)- w(k) \\\\<br>&amp;= (1 &#8211; K) e(k) &#8211; w(k)<br> \\end{aligned}<br>$$<\/p>\n\n\n\n<p>Note how assuming that the reference signal $\\bar{y}(k)=\\bar{y}$ is constant has the effect of cancelling $\\bar{y}$ from the recursion. This is  integral action once again at work!<\/p>\n\n\n\n<p>A reasonable assumption on the disturbance $w(k)$ might be that it is <em>small<\/em> when compared with $u(k)$. For example, that $w(k)=\\delta(k) \\, u(k)$ and that $\\delta(k)$ is <em>bounded<\/em>, say $|\\delta(k)| \\leq \\gamma$. Note that we are not saying how small $\\gamma$ should be! That&#8217;s a question that we will seek to answer based on what we know about the system. Indeed, because<\/p>\n\n\n\n<p>$$<br> \\begin{aligned}<br>|e(k+1)| &amp;= |(1 &#8211; K) e(k) &#8211; w(k)| \\\\<br>&amp;= |(1 &#8211; K) e(k) + \\delta(k) u(k)| \\\\<br>&amp;= |1 &#8211; K &#8211; \\delta(k) K| |e(k)|,<br> \\end{aligned}<br>$$<\/p>\n\n\n\n<p>the error $e(k)$ converges to zero even in the presence of operator errors as long as<\/p>\n\n\n\n<p>$$|1-K+\\delta(k) K|\\leq|1-K|+|K||\\delta(k)|\\leq |1-K|+|K|\\gamma&lt;1.$$<\/p>\n\n\n\n<p>In other words, if<\/p>\n\n\n\n<p>$$\\gamma&lt;\\frac{1-|1-K|}{|K|}.$$<\/p>\n\n\n\n<p>One conclusion is that, since $K > 0$ and $|1-K|&lt;1$, it will always be possible to tolerate some operator error. Better yet, if the operator is <em>cautious<\/em>, that is if $0&lt;K&lt;1$ then <\/p>\n\n\n\n<p>$$\\gamma&lt;\\frac{1-|1-K|}{|K|} = \\frac{1 &#8211; 1 + K}{K} = 1$$<\/p>\n\n\n\n<p>no matter the value of $K$. That is, the balance scale can tolerate up to 100% of operator error, and it will still converge!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright\"><img decoding=\"async\" loading=\"lazy\" width=\"300\" height=\"150\" src=\"https:\/\/i0.wp.com\/linearcontrol.info\/fundamentals\/wp-content\/uploads\/2019\/05\/7e997316ab4cb60ef82ccd67b183e0462b6f90ba.jpg?resize=300%2C150&#038;ssl=1\" alt=\"\" class=\"wp-image-669\" srcset=\"https:\/\/i0.wp.com\/linearcontrol.info\/fundamentals\/wp-content\/uploads\/2019\/05\/7e997316ab4cb60ef82ccd67b183e0462b6f90ba.jpg?resize=300%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/linearcontrol.info\/fundamentals\/wp-content\/uploads\/2019\/05\/7e997316ab4cb60ef82ccd67b183e0462b6f90ba.jpg?resize=768%2C384&amp;ssl=1 768w, https:\/\/i0.wp.com\/linearcontrol.info\/fundamentals\/wp-content\/uploads\/2019\/05\/7e997316ab4cb60ef82ccd67b183e0462b6f90ba.jpg?w=1000&amp;ssl=1 1000w\" sizes=\"(max-width: 300px) 85vw, 300px\" data-recalc-dims=\"1\" \/><\/figure><\/div>\n\n\n\n<p>The type of analysis performed above is covered in much of Chapter 8. Indeed, the above condition in terms of the $\\gamma$ can be obtained via the application of a discrete-time counterpart for the <em>small gain<\/em> argument provided in Section 8.3, in which one can think of the above model for the operator error as been a particular case of the block-diagram in Fig. 8.3 in which the block $\\Delta$ is the $\\delta(k)$ above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a previous post we discussed how the principles of operation of a balance scale could be understood as a feedback loop with integral action. We left off after analyzing the impact of measurement disturbances in the loop and mentioned that input disturbances could be used to model &#8220;operator errors.&#8221;<\/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":[53,8,34,6,35,36],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/posts\/655"}],"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=655"}],"version-history":[{"count":13,"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/posts\/655\/revisions"}],"predecessor-version":[{"id":670,"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/posts\/655\/revisions\/670"}],"wp:attachment":[{"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/media?parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/categories?post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linearcontrol.info\/fundamentals\/index.php\/wp-json\/wp\/v2\/tags?post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}