Dynamic system optimization

In the project that created in past two chapter, we can see from control object that the control response time is long. In this chapter we use dynamic system optimization function to shorten response time, to realize optimal control.

Optimization object

The object selection depends on conception about the system control requirements. As sample, we set the absolution value 's integral of the difference of setting value Step_0->ST to output SCurve0->S2 as the optimization object. The plat will try to change PID parameters to find the minimal object value.

Add 3 new components to project: Node, Absolute, Integral.

Connect Step_0->S2 to Node_0->S1, SCurve_0->S2 to Node_0->C2, input Node_0->C1=-1, then Output S2 of Node_0 is (SCurve_0->S2 - Step_0->S2), after Absolute calculation, connected to Integral, which output is the optimization object.

Whole project is as follow:


Click "Dynamic system optimization" from menu or on toolbar, the following dialog pops up:


Click "Select optimizing quantity", the following dialog pops up:


Add the input parameter KP, KI, KD of PID0 to optimizing data list, then click "Input/Return" button to input data min and max range as upper, click OK to return.

Click "Select object quantity" button, the following dialog window pops up:


Select Integral->S2 as object, click OK to return.

Click "Begin" to run the process, observe the object value changing. The results will output as text. If not satisfied, change the setting and run optimization again. One result is as follows:


Use this result to modify the input data of PID0, and simulate the system again:


From this plot compare to former one, we can see the control response time is much shorted, the control performance is better than the former.