Thread Content
This post was last edited by Hakase on 2023-2-23 at 17:21. The overall Simulink workflow has been created, but an error occurs once it is run. The reason for the error is shown in the figure. The overall process is shown in the figure: the cause of the error is indicated in the figure as well. When returning to Aspen Dynamics, the parameters related to the interior of the distillation column appear as follows. I’m asking if anyone who has dealt with this issue can explain how to resolve such errors
You can use MATLAB/Simulink software to implement Aspen Dynamics combined with MPC control, which requires the use of certain tools and algorithms. First, you need to program Aspen Dynamics according to your application in order to simulate the parameter and kinematic behaviors that occur within your system. You can use Aspen Dynamics’ built-in programming capabilities to achieve this, and write and debug closed-loop control loops according to the specific requirements of your application. Secondly, you can use MATLAB/Simulink to build an MPC model in order to provide closed-loop control and achieve parameter and performance optimization. Here, you will need to define some optimality criteria, such as power and speed, as well as define the mappings from input variables to output variables and the system model. Then, you can use relevant tools and algorithms (such as the MPC Toolbox) to design an MPC controller that meets the specific requirements of your application. Finally, you can embed the MPC controllers in Simulink models to enable effective communication with Aspen Dynamics, and control system performance based on the interaction between the two. -For reference only
Let’s take a look; MPC control is a relatively complex control technique. It requires establishing a mathematical model of the target system and using it to find the optimal solution. MPC control can be used in a variety of different systems, including Aspen Dynamics Plus. It can help you strike a balance between various functional requirements, while providing computational control and stable control. To resolve errors in MATLAB/Simulink, first, you need to check each corresponding Aspen Dynamics parameter to ensure they are correct and consistent. Furthermore, you also need to check whether the MPC control algorithm is being used correctly, and ensure that the MPC algorithm parameters are consistent as well. If everything above is fine, it is recommended that you carry out debugging before programming to improve the parameters or code. -For reference only
Hello! May I add your contact information? My content is all based on a help document on the MATLAB official website. The code is already written inside; under normal circumstances, it can be used just by copying it. With the help of the code available on the MATLAB official website, images similar to those produced by it can be obtained, which proves that there are basically no errors in the previous steps. MATLAB help document link: https://ww2.mathworks.cn/help/mpc/ug/design-and-cosimulate-control-of-high-fidelity-distillation-tower-with-aspen-plus-dynamics.html;jsessionid=4dccc1660f81be7191d4d3318a2e. For the collaborative simulation at the end, the MPC controller is set to be the MPCobj defined in the MATLAB workspace. By clicking on the MPC module in Simulink and then selecting ‘Review’, it can be seen that all parameters are properly set and match those in the MATLAB workspace. Running Simulink at this time will result in an error; the error message is shown in the image above – the backflow value cannot be set to negative (which is obviously impossible). Later, I limited the range of his input and output changes in the MPC controller to (0-90). But the error still occurs; it ignores my range specification, and the reason for the error is still that the return flow value has been assigned a negative value. AspenV11 and MatlabR2016b versions were used. I also created the same file on my laptop, in V12 and Matlab R2021a versions, and both produce the same error. Could someone please take a look and figure out what’s causing this issue? Is there any way to resolve this error?
Hello! All of what you mentioned has been completed and good images have been obtained; the problem now lies in this final step. The MPC controller has been established in Matlab, and its parameters have been tuned. However, collaborative simulation will result in an error, for the same reason as shown in the figure above.
Hello, my QQ number is 904215633. Can you add me so we can discuss things together? I don’t know what communication tools you use; are there any common ones?
It has been found that besides me, there are others with similar problems; theirs Q value exceeds the limit.
Don’t sink, everyone, give some advice!