現(xiàn)在,讓我們通過步驟仿真來驗證預(yù)期的行為。為了確認計算結(jié)果犬性,我們可以利用調(diào)試瀏覽器,并打開內(nèi)核調(diào)試腾仅。在第5步時我們遵循下列條目:
?頂部質(zhì)量和底部質(zhì)量CVs都是控制問題的一部分(沒有被移除)乒裆;
?子控制器處于活動狀態(tài);
?控制器處于優(yōu)化模式推励;
?由于計算7規(guī)定了經(jīng)濟函數(shù)追蹤濾波器時間常數(shù)必須介于5~10mins鹤耍,輸入的值100mins將被截斷在上限10mins。
?對底部質(zhì)量验辞,由于經(jīng)濟優(yōu)化的結(jié)果稿黄,穩(wěn)態(tài)目標被推動到觸碰約束。
在第6步我們注意到:
?底部質(zhì)量CV被移除(因為底部溫度和底部質(zhì)量POVs都斷開)跌造;
?因為底部質(zhì)量CV不再是控制問題的一部分杆怕,內(nèi)核后計算中的約束活動變?yōu)?族购。
在第7步,我們斷開頂部溫度測量陵珍。鑒于頂部質(zhì)量測量依舊可用寝杖,頂部質(zhì)量CV并沒有被移除。
在第8步互纯,我們需遵循以下條目:
?由于頂部溫度和頂部質(zhì)量測量量都斷開瑟幕,頂部質(zhì)量CV將被移除(計算2);
?因此留潦,子控制器被調(diào)至非活動狀態(tài)(頂部和底部質(zhì)量CVs都被移除了)收苏;
?由于控制器只包含了一個子控制器,而這個子控制器現(xiàn)在處于非活動狀態(tài)愤兵,控制器將切換到掛起狀態(tài)。
現(xiàn)在檢查確認步驟9的底部溫度測量處于重新連接狀態(tài)排吴。我們預(yù)計底部質(zhì)量不會被移除秆乳。然后子控制器的請求狀態(tài)是活動的,且預(yù)計現(xiàn)在控制器將切換回優(yōu)化模式钻哩。下面的截圖證實了步驟9的預(yù)期行為屹堰。
帶回家的消息
SMOCPro中內(nèi)置的計算引擎是可用于運行簡單以及精密用戶代碼的一個工具。有兩種允許的計算類型:預(yù)內(nèi)核和內(nèi)核后計算街氢。預(yù)內(nèi)核計算用于修改控制器執(zhí)行之前輸入的內(nèi)核參數(shù)扯键。內(nèi)核后計算可用于記錄參數(shù)和存儲歷史。提供給了用戶有關(guān)參數(shù)和函數(shù)的一個完整列表珊肃,若要查閱荣刑,請參閱本用戶指南的計算部分。
原文:
Let us now step through the simulation to verify the expected behavior. To confirm the results from calculations, we utilize the debug viewer and turn the kernel debug on. At step 5, we observe the following:
? Both the top quality and bottom quality CVs are part of the control problem (not removed).
? The sub-controller is active.
? The controller is in optimization mode.
? Because calculation 7 stipulated that the economic function tracking filter time constant must lie between 5 and 10 minutes, the entered value of 100 minutes is truncated at the upper bound of 10 minutes.
? For the bottom quality, the steady-state target is pushed against a constraint as a consequence of the economic optimization.
At step 6, we notice that
?The bottom quality CV is removed (since both bottom temperature and bottom quality POVs are disconnected)
?Because the bottom quality CV is no longer a part of the control problem, the constraint activity in the post kernel calculation changes to 0.
At step 7, we disconnect the top temperature measurement. The top quality CV is not removed since the measurement for the top quality is still available.
At step 8, we observe the following
? Because the measurements for top temperature and top quality are disconnected, the top quality CV is removed (calculation 2)
? Consequently, the sub-controller is turned inactive (both top and bottom quality CVs are removed)
? Since the controller contains only one sub-controller, and that sub-controller is now inactive, the controller sheds to standby
Now examine the status at step 9 where the bottom temperature measurement is reconnected. We expect the bottom quality to not be removed. Subsequently, the sub-controller request status is active and the controller now is expected to switch back to optimize mode. The screenshot below confirms the expected behavior at step 9.
Take Home Message
The Calculation engine built into SMOCPro is a tool that can be used to run simple, as well as, elaborate user code. There are two types of calculations allowed: Pre-kernel and Post-kernel calculations. The pre-kernel calculations serve to modify the parameters entering the kernel before the controller execution. The post-kernel calculations may be used to record parameters and historize them. For a complete list of parameters and functions available to the user, please refer to the Calculations section of this User’s Guide.
2016.6.19