Hybrid GA–GWO Based PID Controller Optimization and Comparis

Version 1.0.0 (3.42 KB) by pavan
MATLAB code comparing PID tuning using Genetic Algorithm (GA), Grey Wolf Optimizer (GWO), and a hybrid GA→GWO approach with performance and
1 Download
Updated 8 Nov 2025

View License

This MATLAB project presents an intelligent approach to PID controller tuning using three different optimization methods:
  1. Genetic Algorithm (GA)
  2. Grey Wolf Optimizer (GWO)
  3. Hybrid GA→GWO algorithm (uses GA for global exploration and GWO for fine-tuning)
The script automatically finds optimal PID gains (Kp, Ki, Kd) for a second-order plant model and compares system responses.
It evaluates each optimizer using an Integral of Absolute Error (IAE) performance index with a penalty for overshoot, ensuring both fast and stable control action.
Three simulation results are displayed:
  • Figure 1: Step response comparison (GA vs GWO vs Hybrid GA→GWO)
  • Figure 2: Disturbance rejection capability (Hybrid GA→GWO PID)
  • Figure 3: Hardware-like discrete simulation (sampling, quantization, saturation)
This project is useful for students and researchers interested in control systems, evolutionary algorithms, and intelligent PID optimization.

Cite As

pavan (2025). Hybrid GA–GWO Based PID Controller Optimization and Comparis (https://se.mathworks.com/matlabcentral/fileexchange/182534-hybrid-ga-gwo-based-pid-controller-optimization-and-comparis), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0