training MLP by learning from PID controller
조회 수: 5 (최근 30일)
이전 댓글 표시
I have a PID controller, and I need to train MLP by learning from PID controller. The simulink structure is like the following, and the inputs are two sine waves.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1171528/image.png)
The configuration of PID is like the following.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1171533/image.png)
The architecture of MLP is like the following, and the normalization has been set in Sequence layer.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1171538/image.png)
The training plot is good in reference to the following.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1171543/image.png)
However, there is something wrong with comparision scope in simulink, where the mark red and mark green represents the outputs of PID controller, while the mark yellow an mark blue represents the outputs of Neural Network. Obviously, the performance of Neural Network is not so good, but I don't know the reason. If anyone knows about that, please help me, I will appreciate it.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1171548/image.png)
댓글 수: 0
답변 (1개)
David Willingham
2022년 10월 28일
Hi,
Firstly, you may need to train a model that type includes state information, i.e.LSTM. I would recommend trying a LSTM network.
Another consideration, have you thought about using reinforcement learning? It is better suited to modeling control systems. This example shows how you can use it to tune a PI controller Tune PI Controller Using Reinforcement Learning
댓글 수: 4
David Willingham
2022년 11월 3일
Hi Yang,
What is the goal to replace the PID with Deep Learning? What's your measures for success?
For the LSTM architecture, have you tried tuning any of the parameters?
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!