- Open the PID Tuner app from the "Apps" tab
- In the "Plant" dropdown, select "Identify New Plant"
- In the "Get I/O Data" dropdown, select "Arbitrary I/O Data"
- Specify the variable name (vector) for the output signal.
- Specify the variable name (vector) for the input signal (*Note: input and output signals must be the same size)
- Enter the start time
- Enter the sample time
- Click "Import" in the bottom right of the pop-up window
- Set all other settings in the toolstrip of the PID tuner (i.e. Controller type, domain, performance measures, etc.)
Tune PID controller for a nonlinear system in MATLAB
조회 수: 24 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2021년 2월 17일
답변: MathWorks Support Team
2021년 2월 25일
I am implementing a PID controller in a MATLAB script in which I have use ode23. The system is nonlinear, and I want to know how to optimize my PID gains without using Simulink.
채택된 답변
MathWorks Support Team
2021년 2월 17일
Most of the tools that MATLAB has available for PID controller tuning is with respect to linear systems. Nonlinear systems are extremely hard to predict and are therefore very hard to optimize PID gains for. Common practice is to optimize the PID gains for the linearized system and use these as a starting point for the PID gains of the nonlinear system.
A Simulink model can easily be linearized, but it is less straightforward to do this in MATLAB. The way to do this is through the PID Tuner app, for which the documentation can be found at:
With this app, the user can input arrays of input and output signals to the physical system without any PID controller action. The PID Tuner app will try to linearize the system and apply the best PID gains for the performance measures (response time, transient behavior) specified. The steps below outline this process when choosing the input/output data for the plant.
The performance measures can be adjusted until the desired system response is achieved.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 PID Controller Tuning에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!