image thumbnail


version 1.0.0 (3.05 KB) by Duane Hanselman
Search for optimum PD, PI, and PID parameters using fminsearch.


Updated 23 Jul 2018

View License

PIDSEARCH searches for a PID type controller for a plant G starting from an initial controller Di while minimizing a selected cost function or parameters based on the unit step response. The returned controller will have the same structure as Di. Both G and Di must be control toolbox transfer functions. Cost functions and parameters are:
ITAE -- integral of time and absolute error
ISTE -- integral of the square of the product of time and absolute error
ISE -- integral of the squared error
RISE -- integral of the squared error beginning at the system rise time
OS -- response overshoot
Ts -- response settling time
OSTs -- product of the response overshoot and settling time
UTs -- product of the initial control effort amplitude and response settling time

Cite As

Duane Hanselman (2021). PIDSEARCH (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!