Three-Phase Shunt Active Power Filter (SAPF) with Fuzzy-PI Control – MATLAB/Simulink Model
This advanced MATLAB/Simulink model demonstrates the complete design, control, and performance evaluation of a Shunt Active Power Filter (SAPF) used for harmonic mitigation in nonlinear loads. The system is implemented with three different control strategies—Conventional PI, ANN-based PI, and Fuzzy-Tuned PI—and provides a detailed comparison of harmonic reduction and source current quality improvement.
🔧 System Highlights
Three-phase grid (400 V, 50 Hz) feeding a nonlinear load (diode rectifier + RL load)
High harmonic distortion generated by nonlinear load
SAPF with DC-link capacitor, 3-phase inverter, and coupling inductor
dq/αβ (Clark) transformation blocks used for instantaneous power (p–q) calculation
Reference current generation for harmonic compensation
PWM current control based on reference and inverter currents
Real-time THD comparison between PI, ANN-PI, and Fuzzy-PI controllers
🧠 Control Methods Implemented
✔️ Conventional PI Controller
Used for DC-link voltage regulation and real–reactive power computation.
✔️ ANN-Based PI Controller
Neural network–tuned PI parameters for dynamic voltage regulation and improved p–q estimation.
✔️ Fuzzy-PI Controller (Best Performer)
Adaptive fuzzy logic tuning generates optimal Kp and Ki based on error and change-in-error.
Provides faster convergence and superior harmonic suppression.
📈 Performance Comparison (THD of Source Current)
| Controller Type | THD (%) |
|---|---|
| Conventional PI | 1.83% |
| ANN-PI Control | 1.77% |
| Fuzzy-PI Control | 1.27% (BEST) |
The Fuzzy-PI Controller delivers the lowest THD, restoring the source current to high-quality, sinusoidal shape (<5% IEEE-519 compliance).
📊 MATLAB Simulation model Included
PI Controlled SAF model slx
ANN controlled SAF Model slx
Fuzzy Controlled SAF Model slx
🎓 Ideal For
Researchers
Power electronics & power quality engineers
Academic projects on SAPF/DSTATCOM
Harmonics mitigation and p–q control studies
MATLAB/Simulink learners
Fuzzy Controlled Shunt active power filter in MATLAB
Simulink Super Sale







