Matlab 'pidtune()' function Algorithm
조회 수: 7(최근 30일)
표시 이전 댓글
Ann-Christin Schlupek 2023년 3월 25일
can someone maybe explain me how the Algorithm of the pidtune() function works?
Thanks in advance!
댓글 수: 0
Steven Lord 2023년 3월 26일
See the Algorithms section on its documentation page. The References section on that same page may also be of interest.
댓글 수: 1
Sam Chak 2023년 3월 26일
The PID Tuning Algorithm is described on this page.
In slightly technical terms, pidtune() contains a set of instructions that tells MATLAB what numerical operations to perform repeatedly, in what order, and under what conditions, until all three tuning objectives are achieved:
- Closed-loop stability
- Adequate performance
- Adequate robustness
according to some tuning rules such as the popular Ziegler–Nichols, Aström's AMIGO, Skogestad's Internal Model Control, and Chien-Hrones-Reswick. Suggest you to make a Google search on these tuning rules.
I haven't looked into the algorithm. But from the perspective of control system design, those operations can range from basic arithmetic calculations (identifying the search direction of the stability regime for the PID gains via the Routh–Hurwitz criterion, computing eigenvalues, etc.) to complex data analysis (linearization, computing step-response characteristics, computing gain margin and phase margin, etc.).
By default, if the designer doesn't know what the performance requirements are or what the stakeholder really want, then the algorithm will automatically choose a crossover frequency (loop bandwidth) based on the plant dynamics, and designs for a target phase margin of 60°.
댓글 수: 2
Sam Chak 2023년 3월 29일
The pidtune(), like most commericial software such as
is a proprietary PID tuning algorithm. However, you can search the m-file and take a glimpse.
Find more on Classical Control Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!