File Exchange

image thumbnail

ِAnt Colony Optimization for PID Controller of a DC Motor

version (13.9 KB) by ammar al jodah
Ant Colony is used to find the PID parameters for DC motor speed control


Updated 01 Aug 2020

View License

Using these files you can solve any optimization problem that involve finding a parameter in some range.

Cite As

ammar al jodah (2020). ِAnt Colony Optimization for PID Controller of a DC Motor (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (10)

Thank you Sachin Sharma, this bug has been fixed now. Thanks for pointing that.

Hi, There is some conceptual mistake in this optimization program. Try at your own risk.
Nodes(ant(A,:)) --> this statement is wrong and will give you wrong Node information. You can verify the same by having different LB and UB for disfferent variables instead of same LB and UB for all variables. You can mail me at: for correct optimization code.


Nidhi Sahu


How to initialize P, I and D with certain values to begin the algorithm with ?

gigih dwi

thanks. so easy for study. recomen

how i can use ACO for tuning fractional order PID controller. when i apply this code for AVR system fractional derivative stop simulation plz provide code for the same my email id

So easy to understand! Thank you Ammar al Jodah!

ye yang



Fixed a bug

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux