{"id":1605,"date":"2025-12-16T08:10:02","date_gmt":"2025-12-16T07:10:02","guid":{"rendered":"https:\/\/control-advent.com\/?p=1605"},"modified":"2025-12-16T08:10:19","modified_gmt":"2025-12-16T07:10:19","slug":"16-how-to-fix-the-magical-solution","status":"publish","type":"post","link":"https:\/\/control-advent.com\/?p=1605","title":{"rendered":"16 &#8211; How to fix the magical solution?"},"content":{"rendered":"\n<p>In the gift factory of the North Pole, many processes use vapor pressure to work.<br>The vapor pressure is controlled by opening and closing a valve.<\/p>\n\n\n\n<p>In the past, this valve was controlled using a simple analog <strong>on\/off controller<\/strong>. Unfortunately, this caused <strong>sustained oscillations<\/strong>: the vapor pressure kept going up and down instead of settling at a steady value.<\/p>\n\n\n\n<p>To fix this problem, the elves decided to try a more sophisticated and magical solution: the <strong>Pinecone\u2013Icicle\u2013Dancing (PID) controller<\/strong>. It contains three parts:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Pinecone (P):<\/strong> The magical pinecone reacts to the difference between the desired pressure and the current pressure. It amplifies or attenuates this difference by a factor <strong>K<\/strong>.<br><\/li>\n\n\n\n<li><strong>Icicle (I):<\/strong> The icicle grows or melts depending on the same pressure difference.<br>The time constant <strong>Ti<\/strong> determines how fast this happens: a larger <strong>Ti<\/strong> means the icicle grows more slowly.<br><\/li>\n\n\n\n<li><strong>Dancing elves (D):<\/strong> The dancing elves react to how fast the pressure is changing.<br>The time constant <strong>Td<\/strong> determines how strongly they react to quick changes: a larger <strong>Td<\/strong> means the elves try harder to anticipate where the pressure is heading.<\/li>\n<\/ul>\n\n\n\n<p>The controller output is the sum of the effects of the pinecone, the icicle, and the dancing elves.<\/p>\n\n\n\n<p>The elves enthusiastically replace the old on\/off controller with this new PID controller and switch the system back to automatic mode. To their great disappointment, the vapor pressure is <strong>still oscillating<\/strong>!<\/p>\n\n\n\n<p>Assume that:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>the pressure sensor is clean (not noisy), and<\/li>\n\n\n\n<li>the oscillations are caused by the controller reacting too aggressively.<\/li>\n<\/ul>\n\n\n\n<p>The elves now wonder whether adjusting the pinecone gain <strong>K<\/strong>, the icicle growing time <strong>Ti<\/strong>, and the dancing time <strong>Td<\/strong> could calm things down.<\/p>\n\n\n\n<p><strong>How should these parameters be modified to decrease the oscillations?<\/strong><\/p>\n\n\n\n<p>a. \ud83d\udcc8\ud83c\udf32\u23f1\ufe0f Increase K, increase Ti, and increase Td.<br>b. \ud83d\udcc8\ud83c\udf32\u2b07\ufe0f Increase K, increase Ti, and decrease Td.<br>c. \ud83d\udcc8\u2744\ufe0f\u23f1\ufe0f Increase K, decrease Ti, and increase Td.<br>d. \ud83d\udcc8\u2744\ufe0f\u2b07\ufe0f Increase K, decrease Ti, and decrease Td.<br>e. \ud83d\udcc9\ud83c\udf32\u23f1\ufe0f Decrease K, increase Ti, and increase Td.<br>f. \ud83d\udcc9\ud83c\udf32\u2b07\ufe0f Decrease K, increase Ti, and decrease Td.<br>g. \ud83d\udcc9\u2744\ufe0f\u23f1\ufe0f Decrease K, decrease Ti, and increase Td.<br>h. \ud83d\udcc9\u2744\ufe0f\u2b07\ufe0f Decrease K, decrease Ti, and decrease Td.<br>i. \ud83e\udd37\u200d\u2642\ufe0f\ud83d\udd04\u274c None of the above: if a system oscillates, there is no way to stop it.<\/p>\n\n\n<div class='bootstrap-yop yop-poll-mc'>\n\t\t\t\t\t\t\t<div class=\"basic-yop-poll-container\" style=\"background-color:#b70004; border:0px; border-style:solid; border-color:#b70004; border-radius:0px; padding:10px 10px;\" data-id=\"53\" data-temp=\"basic\" data-skin=\"minimal\" data-cscheme=\"black\" data-cap=\"0\" data-access=\"wordpress\" data-tid=\"\" data-uid=\"a690c5eba9f561b66c7375e471a1cf82\" data-pid=\"1605\" data-resdet=\"percentages\" data-show-results-to=\"\" data-show-results-moment=\"never\" data-show-results-only=\"false\" data-show-message=\"true\" data-show-results-as=\"bar\" data-sort-results-by=\"as-defined\" data-sort-results-rule=\"asc\"data-is-ended=\"0\" data-gdpr=\"no\" data-gdpr-sol=\"consent\" data-css=\".basic-yop-poll-container[data-uid] .basic-vote { text-align: center; }\" data-counter=\"0\" data-load-with=\"1\" data-notification-section=\"top\"><div class=\"row\"><div class=\"col-md-12\"><div class=\"basic-inner\"><div class=\"basic-message hide\" style=\"border-left: 10px solid #008000; padding: 0px 10px;\" data-error=\"#ff0000\" data-success=\"#008000\"><p class=\"basic-message-text\" style=\"color:#000000; font-size:14px; font-weight:normal;\"><\/p><\/div><div class=\"basic-overlay hide\"><div class=\"basic-vote-options\"><\/div><div class=\"basic-preloader\"><div class=\"basic-windows8\"><div class=\"basic-wBall basic-wBall_1\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_2\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_3\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_4\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_5\"><div class=\"basic-wInnerBall\"><\/div><\/div><\/div><\/div><\/div><form class=\"basic-form\"><input type=\"hidden\" name=\"_token\" value=\"5fc5644d7e\" autocomplete=\"off\"><div class=\"basic-elements\"><div class=\"basic-element basic-question basic-question-text-horizontal\" data-id=\"53\" data-uid=\"1f66177f162ea566aef2efd73fef8774\" data-type=\"question\" data-question-type=\"text\" data-allow-multiple=\"no\" data-min=\"1\" data-max=\"1\" data-display=\"horizontal\" data-colnum=\"\" data-display-others=\"no\" data-others-color=\"\" data-others=\"\"><div role=\"heading\" aria-level=\"5\" class=\"basic-question-title\" style=\"color:#ffffff; font-size:14px; font-weight:normal; text-align:center;\">Choose an option:<\/div><ul class=\"basic-answers basic-h-answers\"><li class=\"basic-answer col-xs-6 col-sm-6 cols-9\" style=\"padding:0px 0px;\" data-id=\"520\" data-type=\"text\" data-vn=\"0\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[520]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[520]\" name=\"answer[53]\" value=\"520\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">a<\/span><\/label><\/div><\/li><li class=\"basic-answer col-xs-6 col-sm-6 cols-9\" style=\"padding:0px 0px;\" data-id=\"521\" data-type=\"text\" data-vn=\"0\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[521]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[521]\" name=\"answer[53]\" value=\"521\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">b<\/span><\/label><\/div><\/li><li class=\"basic-answer col-xs-6 col-sm-6 cols-9\" style=\"padding:0px 0px;\" data-id=\"522\" data-type=\"text\" data-vn=\"0\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[522]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[522]\" name=\"answer[53]\" value=\"522\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">c<\/span><\/label><\/div><\/li><li class=\"basic-answer col-xs-6 col-sm-6 cols-9\" style=\"padding:0px 0px;\" data-id=\"526\" data-type=\"text\" data-vn=\"0\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[526]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[526]\" name=\"answer[53]\" value=\"526\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">d<\/span><\/label><\/div><\/li><li class=\"basic-answer col-xs-6 col-sm-6 cols-9\" style=\"padding:0px 0px;\" data-id=\"540\" data-type=\"text\" data-vn=\"19\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[540]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[540]\" name=\"answer[53]\" value=\"540\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">e<\/span><\/label><\/div><\/li><li class=\"basic-answer col-xs-6 col-sm-6 cols-9\" style=\"padding:0px 0px;\" data-id=\"541\" data-type=\"text\" data-vn=\"8\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[541]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[541]\" name=\"answer[53]\" value=\"541\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">f<\/span><\/label><\/div><\/li><li class=\"basic-answer col-xs-6 col-sm-6 cols-9\" style=\"padding:0px 0px;\" data-id=\"542\" data-type=\"text\" data-vn=\"2\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[542]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[542]\" name=\"answer[53]\" value=\"542\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">g<\/span><\/label><\/div><\/li><li class=\"basic-answer col-xs-6 col-sm-6 cols-9\" style=\"padding:0px 0px;\" data-id=\"543\" data-type=\"text\" data-vn=\"0\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[543]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[543]\" name=\"answer[53]\" value=\"543\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">h<\/span><\/label><\/div><\/li><li class=\"basic-answer col-xs-6 col-sm-6 cols-9\" style=\"padding:0px 0px;\" data-id=\"544\" data-type=\"text\" data-vn=\"0\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[544]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[544]\" name=\"answer[53]\" value=\"544\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">i<\/span><\/label><\/div><\/li><\/ul><\/div><div class=\"clearfix\"><\/div><\/div><div class=\"basic-vote\"><a href=\"#\" class=\"button basic-vote-button\" role=\"button\" style=\"background:#ffffff; border:1px; border-style: solid; border-color:#000000; border-radius:0px; padding:5px 10px; color:#000000; font-size:14px; font-weight:normal;\">&gt;&gt;&gt;<\/a><\/div><\/form><div class=\"yop-poll-modal\"><div class=\"yop-poll-modal-content\"><div class=\"yop-poll-modal-header\"><span class=\"yop-poll-modal-close\">&times;<\/span><\/div><div class=\"yop-poll-modal-body\"><div class=\"yop-poll-form-group\"><label class=\"yop-poll-user-or-email-label\">Username or Email Address<\/label><input type=\"text\" class=\"yop-poll-user-or-email-input\" autocomplete=\"off\"><\/div><div class=\"yop-poll-form-group\"><label class=\"yop-poll-password-label\">Password<\/label><input type=\"password\" class=\"yop-poll-password-input\" autocomplete=\"off\"><\/div><div class=\"yop-poll-form-group submit\"><button class=\"button button-primary button-large yop-poll-login-button\">Log In<\/button><\/div><div class=\"yop-poll-form-group yop-poll-section-login-options\"><p><a href=\"https:\/\/control-advent.com\/wp-login.php?action=register\" target=\"_blank\">No account? Register here<\/a><\/p><p><a href=\"https:\/\/control-advent.com\/wp-login.php?action=lostpassword\" target=\"_blank\">Forgot password<\/a><\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\n\t\t\t\t\t\t<\/div>\n\n\n\n<p><strong>Related control theory topic:<\/strong> <strong>PID controller<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the gift factory of the North Pole, many processes use vapor pressure to work.The vapor pressure is controlled by opening and closing a valve. In the past, this valve was controlled using a simple analog on\/off controller. Unfortunately, this &hellip; <span class=\"more-link\"><a href=\"https:\/\/control-advent.com\/?p=1605\" class=\"readmore\">Continue reading<span class=\"screen-reader-text\">16 &#8211; How to fix the magical solution?<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":1616,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[111],"class_list":["post-1605","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-english","tag-2025-en"],"_links":{"self":[{"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/posts\/1605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/control-advent.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1605"}],"version-history":[{"count":6,"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/posts\/1605\/revisions"}],"predecessor-version":[{"id":1618,"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/posts\/1605\/revisions\/1618"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/media\/1616"}],"wp:attachment":[{"href":"https:\/\/control-advent.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/control-advent.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/control-advent.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}