top of page

MATLAB Simulation of Microgrid Dynamics with PO, ANFIS, PSO MPPT

MATLAB Simulation of Microgrid Dynamics with PO, ANFIS, PSO MPPT


We explore the dynamic operation of a microgrid equipped with a photovoltaic (PV) system and battery storage. The focus is on optimizing the microgrid's performance through different Maximum Power Point Tracking (MPPT) algorithms. We examine the impact of Perturb and Observe (P&O) MPPT, PSO (Particle Swarm Optimization) MPPT, and PSO Sliding Mode MPPT on the microgrid's efficiency.

Microgrid Components:

The microgrid comprises a 1 MW PV system, a 1 MWh battery storage unit, and is disconnected from the grid. The PV system consists of 15 panels in series, each rated at 355 Watts, generating a total of 1.01 MW under standard test conditions. A boost converter and a three-level inverter facilitate the conversion of DC to AC, and the entire system is controlled by different MPPT algorithms.

MPPT Algorithms Overview:

  1. Perturb and Observe (P&O) MPPT:

  • Utilizes a Perturb and Observe algorithm to extract maximum power from the PV system.

  • Involves monitoring changes in voltage and adjusting the duty cycle of the boost converter accordingly.

  1. Particle Swarm Optimization (PSO) MPPT:

  • Employs PSO to optimize the MPPT process.

  • The PSO algorithm dynamically adjusts the reference voltage, optimizing the PV system's performance.

  1. PSO Sliding Mode MPPT:

  • Integrates a sliding mode control approach with the PSO algorithm.

  • The sliding mode controller generates the duty cycle for the boost converter based on the PSO-derived reference voltage.

Simulation and Analysis:

The microgrid simulation includes the PV system, battery storage, local load, and connection to the grid. Key parameters such as point of common coupling voltage, frequency, power from PV, battery power, and load power are monitored.

Results Comparison:

Simulation results indicate that PSO MPPT outperforms P&O MPPT and PSO Sliding Mode MPPT in terms of tracking efficiency. PSO MPPT provides faster and more accurate tracking, optimizing power generation from the PV system.


This tutorial demonstrates the implementation and comparison of different MPPT algorithms in a microgrid scenario. The results highlight the significance of choosing an efficient MPPT algorithm to enhance the overall performance of renewable energy systems.

21 views0 comments


bottom of page