{"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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">The controller output is the sum of the effects of the pinecone, the icicle, and the dancing elves.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\"><strong>How should these parameters be modified to decrease the oscillations?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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=\"yop-poll-container\" data-yop-poll-id=\"53\"><script type=\"application\/json\" data-yop-poll-init>{\"poll\":{\"id\":\"53\",\"name\":\"16-Dec-2025\",\"template\":\"3\",\"template_base\":\"classic\",\"skin_base\":\"red-v1\",\"status\":\"published\",\"meta_data\":{\"style\":{\"poll\":{\"backgroundColor\":\"#b70004\",\"borderSize\":0,\"borderStyle\":\"none\",\"borderColor\":\"#b70004\",\"borderRadius\":0,\"paddingLeftRight\":10,\"paddingTopBottom\":10},\"questions\":{\"paddingLeftRight\":0,\"paddingTopBottom\":10,\"textColor\":\"#ffffff\",\"textSize\":14,\"textWeight\":\"normal\",\"textAlign\":\"center\"},\"answers\":{\"paddingLeftRight\":0,\"paddingTopBottom\":0,\"textColor\":\"#ffffff\",\"textSize\":14,\"textWeight\":\"normal\",\"skin\":\"minimal\",\"colorScheme\":\"black\"},\"buttons\":{\"backgroundColor\":\"#ffffff\",\"borderSize\":1,\"borderStyle\":\"solid\",\"borderColor\":\"#000000\",\"borderRadius\":0,\"paddingLeftRight\":10,\"paddingTopBottom\":5,\"textColor\":\"#000000\",\"textSize\":14,\"textWeight\":\"normal\",\"align\":\"center\"},\"errors\":{\"borderLeftColorForSuccess\":\"#008000\",\"borderLeftColorForError\":\"#ff0000\",\"borderLeftSize\":10,\"paddingTopBottom\":0,\"textColor\":\"#000000\",\"textSize\":14,\"textWeight\":\"normal\"},\"captcha\":[],\"custom\":{\"css\":\"\"}},\"options\":{\"poll\":{\"voteButtonLabel\":\"&gt;&gt;&gt;\",\"showResultsLink\":\"no\",\"resultsLabelText\":\"Results\",\"showTotalVotes\":\"no\",\"showTotalAnswers\":\"no\",\"startDateOption\":\"now\",\"startDateCustom\":\"\",\"endDateOption\":\"never\",\"endDateCustom\":\"\",\"redirectAfterVote\":\"no\",\"redirectUrl\":\"\",\"redirectAfter\":\"\",\"pageLink\":\"\",\"useCaptcha\":\"no\",\"enableGdpr\":\"no\",\"gdprSolution\":\"ask_consent\",\"gdprConsentText\":\"\",\"loadWithAjax\":\"no\",\"notificationMessageLocation\":\"top\"},\"results\":{\"showResultsMoment\":[\"never\"],\"customDateResults\":\"\",\"showResultsTo\":[],\"resultsDetails\":[\"percentages\"],\"backToVoteOption\":\"no\",\"backToVoteCaption\":\"Back to vote\",\"sortResults\":\"as-defined\",\"sortResultsRule\":\"asc\",\"displayResultsAs\":\"bar\"},\"access\":{\"votePermissions\":[\"wordpress\"]}}}},\"elements\":[{\"id\":\"53\",\"poll_id\":\"53\",\"etext\":\"Choose an option:\",\"etype\":\"question-text\",\"status\":\"active\",\"sorder\":\"1\",\"meta_data\":{\"allowOtherAnswers\":\"no\",\"otherAnswersLabel\":\"Other\",\"addOtherAnswers\":\"no\",\"displayOtherAnswersInResults\":\"no\",\"resultsColorForOtherAnswers\":\"#000000\",\"allowMultipleAnswers\":\"no\",\"multipleAnswersMinim\":\"1\",\"multipleAnswersMaxim\":\"1\",\"answersDisplay\":\"horizontal\",\"answersColumns\":\"\",\"answersSort\":\"as-defined\"},\"subelements\":[{\"id\":\"520\",\"poll_id\":\"53\",\"element_id\":\"53\",\"stext\":\"a\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"1\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}},{\"id\":\"521\",\"poll_id\":\"53\",\"element_id\":\"53\",\"stext\":\"b\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"2\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}},{\"id\":\"522\",\"poll_id\":\"53\",\"element_id\":\"53\",\"stext\":\"c\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"3\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}},{\"id\":\"526\",\"poll_id\":\"53\",\"element_id\":\"53\",\"stext\":\"d\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"4\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}},{\"id\":\"540\",\"poll_id\":\"53\",\"element_id\":\"53\",\"stext\":\"e\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"5\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}},{\"id\":\"541\",\"poll_id\":\"53\",\"element_id\":\"53\",\"stext\":\"f\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"6\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}},{\"id\":\"542\",\"poll_id\":\"53\",\"element_id\":\"53\",\"stext\":\"g\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"7\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}},{\"id\":\"543\",\"poll_id\":\"53\",\"element_id\":\"53\",\"stext\":\"h\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"8\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}},{\"id\":\"544\",\"poll_id\":\"53\",\"element_id\":\"53\",\"stext\":\"i\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"9\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}}]}],\"messages\":{\"captcha\":{\"accessibility-alt\":\"Sound icon\",\"accessibility-title\":\"Accessibility option: listen to a question and answer it!\",\"accessibility-description\":\"Type below the [STRONG]answer[\\\/STRONG] to what you hear. Numbers or words:\",\"explanation\":\"Click or touch the [STRONG]ANSWER[\\\/STRONG]\",\"refresh-alt\":\"Refresh\\\/reload icon\",\"refresh-title\":\"Refresh\\\/reload: get new images and accessibility option!\"},\"buttons\":{\"anonymous\":\"Anonymous Vote\",\"wordpress\":\"Sign in with WordPress\",\"facebook\":\"Sign in with Facebook\",\"google\":\"Sign in with Google\"},\"voting\":{\"poll-ended\":\"This poll is no longer accepting votes\",\"poll-not-started\":\"This poll is not accepting votes yet\",\"already-voted-on-poll\":\"Thank you for your vote\",\"invalid-poll\":\"Invalid Poll\",\"no-answers-selected\":\"No answer selected\",\"min-answers-required\":\"At least {min_answers_allowed} answer(s) required\",\"max-answers-required\":\"A max of {max_answers_allowed} answer(s) accepted\",\"no-answer-for-other\":\"No other answer entered\",\"no-value-for-custom-field\":\"{custom_field_name} is required\",\"consent-not-checked\":\"You must agree to our terms and conditions\",\"no-captcha-selected\":\"Captcha is required\",\"not-allowed-by-ban\":\"Vote not allowed\",\"not-allowed-by-block\":\"Vote not allowed\",\"not-allowed-by-limit\":\"Vote not allowed\",\"thank-you\":\"Thank you for your vote\",\"too-many-chars-for-custom-field\":\"Text for {custom_field_name} is too long\"},\"results\":{\"single-vote\":\"vote\",\"multiple-votes\":\"votes\",\"single-answer\":\"answer\",\"multiple-answers\":\"answers\"}},\"date_format\":\"F j, Y\",\"nonce\":\"5a08cae797\",\"page_id\":0,\"tracking_id\":\"https:\\\/\\\/control-advent.com\"}<\/script><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><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}]}}