top of page

PSO Sliding mode Based Variable step P&O MPPT in MATLAB

9 hours ago
6 min read

PSO Sliding mode Based Variable step P&O MPPT in MATLAB


𝐈𝐧𝐭𝐫𝐨𝐝𝐮𝐜𝐭𝐢𝐨𝐧

The PSO Sliding Mode Based Variable Step P&O MPPT in MATLAB model combines three intelligent control concepts to improve the maximum power extraction of a solar PV system:


PSO Sliding mode Based Variable step P&O MPPT

PSO Sliding mode Based Variable step P&O MPPT in MATLAB
₹10,000.00₹5,000.00
Buy Now


  • Particle Swarm Optimization (PSO)

  • Sliding Mode Controller (SMC)

  • Variable Step Size Perturb and Observe (P&O) MPPT

In this model, PSO is used to tune the important controller parameters of the Sliding Mode Controller. The tuned SMC then generates a variable step size for the P&O MPPT algorithm.

This approach helps the PV system respond effectively when solar irradiance changes and allows the boost converter to operate close to the maximum power point.

𝐒𝐲𝐬𝐭𝐞𝐦 𝐎𝐯𝐞𝐫𝐯𝐢𝐞𝐰

The MATLAB/Simulink model mainly consists of:

  • Solar PV panel

  • Boost converter

  • Resistive load

  • Voltage and current measurement

  • PV power calculation

  • P&O MPPT controller

  • Sliding Mode Controller

  • PSO optimization program

  • PWM/control signal generation

  • Output voltage, current, and power monitoring

Main System Configuration

Parameter

Value / Description

PV rated power

250 W

PV array configuration

1 module, 1 parallel string

Initial irradiance

1000 W/m²

Temperature

25°C

Converter

DC-DC Boost Converter

MPPT technique

Variable Step P&O

Optimization method

PSO

Main controller

Sliding Mode Controller

Number of optimized parameters

5

PSO population size

4

Maximum PSO iterations

10

Approximate function evaluations

40–44

𝐏𝐒𝐎 𝐎𝐩𝐭𝐢𝐦𝐢𝐳𝐚𝐭𝐢𝐨𝐧

Particle Swarm Optimization is used to search for the best controller parameters.

The PSO program is configured with:

  • Number of particles

  • Number of decision variables

  • Maximum number of iterations

  • Upper and lower parameter limits

  • Objective function

  • Simulink model evaluation

Parameters Optimized by PSO

The model considers five controller parameters as decision variables.

These include:

  • Ka

  • Kb

  • Kc

  • Kd

  • Ke

PSO searches for the best combination of these controller gains.

After optimization is completed, the final optimized values can be stored in the MATLAB or Simulink model workspace and used by the Sliding Mode Controller.

𝐏𝐒𝐎 𝐎𝐩𝐭𝐢𝐦𝐢𝐳𝐚𝐭𝐢𝐨𝐧 𝐒𝐞𝐭𝐭𝐢𝐧𝐠𝐬

PSO Setting

Value

Population size

4

Maximum iterations

10

Number of decision variables

5

Controller parameters optimized

Ka, Kb, Kc, Kd, Ke

Optimization model

MATLAB/Simulink

Objective evaluation

Simulink-based

Expected model executions

Around 40–44

Each particle represents one possible set of controller parameters.

For every particle:

  1. Parameter values are assigned.

  2. The Simulink model is executed.

  3. System performance is evaluated.

  4. PSO updates the particle position.

  5. The process continues until the maximum iteration is reached.

𝐖𝐨𝐫𝐤𝐢𝐧𝐠 𝐏𝐫𝐨𝐜𝐞𝐬𝐬

The complete control process can be understood in simple steps.

Step 1 – Measure PV Parameters

The system continuously measures:

  • PV voltage

  • PV current

These measurements are used to calculate PV power.

Step 2 – Calculate PV Power

PV voltage and current are processed to obtain the instantaneous PV power.

The power information is supplied to the MPPT control section.

Step 3 – Determine Changes in PV Conditions

Previous and present voltage/current values are compared.

The controller observes the variation in operating conditions caused by changes in solar irradiance.

Step 4 – Sliding Mode Controller Processing

The SMC receives the required change variables and uses the optimized gain parameters.

The PSO-tuned values of Ka, Kb, Kc, Kd, and Ke influence the controller response.

Step 5 – Generate Variable Step Size

Instead of using a fixed perturbation value, the Sliding Mode Controller generates a changing step size.

This variable step size is supplied to the P&O algorithm.

Step 6 – P&O MPPT Operation

The P&O algorithm uses:

  • PV voltage

  • PV current

  • Variable perturbation step

It then generates the required converter duty-cycle command.

Step 7 – Boost Converter Control

The boost converter changes its operating point according to the MPPT command.

The converter therefore helps the PV panel operate close to its maximum power point.

𝐂𝐨𝐧𝐭𝐫𝐨𝐥 𝐒𝐭𝐫𝐚𝐭𝐞𝐠𝐲

The major feature of this model is the combination of PSO + SMC + Variable Step P&O.

Conventional P&O

A conventional P&O controller generally changes the operating voltage using a predefined perturbation size.

A smaller step can improve steady-state behavior but may respond slowly.

A larger step can respond quickly but may produce higher oscillations around the maximum power point.

Variable Step P&O

In this system, the perturbation step is not maintained at one constant value.

The Sliding Mode Controller adjusts the step depending on the PV operating condition.

This allows the controller to use different perturbation strengths during different operating conditions.

Role of PSO

PSO does not directly control the converter during normal operation.

Instead, it is mainly used to determine suitable SMC gain parameters.

The overall control sequence is:

PSO Optimization → Tuned SMC → Variable Step Size → P&O MPPT → Duty Cycle → Boost Converter

𝐑𝐨𝐥𝐞 𝐨𝐟 𝐒𝐥𝐢𝐝𝐢𝐧𝐠 𝐌𝐨𝐝𝐞 𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫

The Sliding Mode Controller acts as an adaptive step-size generator for the P&O algorithm.

Its major functions include:

  • Processing PV operating changes

  • Responding to changing irradiance

  • Generating the variable perturbation step

  • Improving MPPT dynamic response

  • Supporting faster movement toward the maximum power point

The SMC performance depends significantly on the selected controller parameters.

This is why PSO is used to identify suitable values automatically rather than relying only on manual tuning.

𝐈𝐫𝐫𝐚𝐝𝐢𝐚𝐧𝐜𝐞 𝐕𝐚𝐫𝐢𝐚𝐭𝐢𝐨𝐧

The PV model is tested under changing solar irradiance.

Irradiance Test Conditions

Operating Stage

Irradiance

Stage 1

1000 W/m²

Stage 2

800 W/m²

Stage 3

600 W/m²

Stage 4

400 W/m²

The irradiance is varied during simulation to examine how the MPPT controller reacts under changing solar conditions.

𝐒𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐑𝐞𝐬𝐮𝐥𝐭𝐬

The MATLAB/Simulink output can be observed through voltage, current, and power scopes.

PV Power

At approximately 1000 W/m² irradiance, the PV system produces close to its rated output.

The simulation indicates approximately:

Irradiance

Approximate PV Power Behaviour

1000 W/m²

Around 250 W

800 W/m²

Around 200 W

600 W/m²

Power decreases with irradiance

400 W/m²

Further reduced power level

The reduction in PV power follows the reduction in available solar irradiance.

PV Voltage

The PV voltage remains within the operating region selected by the MPPT controller while the irradiation changes.

The controller continuously modifies the operating point to maintain maximum available power extraction.

PV Current

PV current shows a stronger variation with irradiance.

As solar irradiance decreases:

  • PV current decreases

  • PV power decreases

  • Converter output power also decreases

Boost Converter Output

The boost converter produces a higher DC output voltage than the PV-side voltage.

The converter responds to the changing duty cycle generated by the MPPT controller.

𝐑𝐞𝐬𝐮𝐥𝐭𝐬 𝐌𝐨𝐧𝐢𝐭𝐨𝐫𝐞𝐝

The model provides graphical results for:

Signal

Description

PV voltage

Solar panel operating voltage

PV current

Solar panel output current

PV power

Power extracted from the PV panel

Boost converter voltage

Converter output voltage

Boost converter current

Converter output current

Boost converter power

Power delivered to the load

These waveforms make it easy to study the behavior of the MPPT system during changing environmental conditions.

𝐊𝐞𝐲 𝐅𝐞𝐚𝐭𝐮𝐫𝐞𝐬

  • 250 W solar PV model

  • PSO-based controller tuning

  • Five optimized SMC parameters

  • Variable step-size P&O MPPT

  • Sliding Mode Controller integration

  • Boost converter control

  • MATLAB-based PSO implementation

  • Simulink-based objective function evaluation

  • Changing irradiance simulation

  • PV voltage monitoring

  • PV current monitoring

  • PV power monitoring

  • Converter voltage, current, and power analysis

  • Suitable for MPPT control study

  • Useful for optimization and controller-tuning analysis

𝐖𝐡𝐲 𝐔𝐬𝐞 𝐏𝐒𝐎 𝐰𝐢𝐭𝐡 𝐒𝐥𝐢𝐝𝐢𝐧𝐠 𝐌𝐨𝐝𝐞 𝐂𝐨𝐧𝐭𝐫𝐨𝐥?

Manual selection of several controller gains can take significant trial and error.

PSO provides a systematic way to search for suitable parameter combinations.

Main Benefits

  • Reduces manual gain-tuning effort

  • Optimizes several parameters simultaneously

  • Integrates directly with Simulink simulation

  • Can evaluate controller performance using an objective function

  • Provides optimized values after completing all iterations

  • Supports repeatable controller tuning

𝐖𝐡𝐲 𝐔𝐬𝐞 𝐕𝐚𝐫𝐢𝐚𝐛𝐥𝐞 𝐒𝐭𝐞𝐩 𝐏&𝐎?

A fixed P&O step may not provide the same response quality under every operating condition.

Variable step operation allows the perturbation size to change dynamically.

This can be useful for:

  • Rapid irradiation variations

  • Startup conditions

  • Movement toward the maximum power point

  • Reduction of unnecessary perturbation near the optimum region

  • Improved dynamic MPPT response

𝐀𝐩𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬

This MATLAB/Simulink model is useful for studying:

  • Solar PV MPPT control

  • Particle Swarm Optimization

  • Sliding Mode Control

  • Variable step-size MPPT

  • P&O algorithm development

  • Boost converter control

  • Renewable-energy controller optimization

  • Intelligent parameter tuning

  • PV system dynamic performance

  • Irradiance variation analysis

  • Advanced power-electronic control techniques

𝐖𝐡𝐨 𝐂𝐚𝐧 𝐔𝐬𝐞 𝐓𝐡𝐢𝐬 𝐌𝐨𝐝𝐞𝐥?

This model is suitable for:

  • Students learning solar PV and MPPT concepts

  • Researchers studying optimization-based MPPT methods

  • Engineers working with converter and renewable-energy controls

  • MATLAB/Simulink learners

  • Power electronics learners

  • Renewable-energy control researchers

  • Users studying PSO and SMC integration

𝐋𝐞𝐚𝐫𝐧𝐢𝐧𝐠 𝐎𝐮𝐭𝐜𝐨𝐦𝐞𝐬

By studying this model, users can understand:

  • How a PV module behaves under changing irradiance

  • How a boost converter interfaces with a PV source

  • How P&O MPPT operates

  • Why variable step size can be introduced

  • How a Sliding Mode Controller can generate the variable step

  • How PSO optimizes controller gains

  • How MATLAB communicates with a Simulink-based objective function

  • How optimization results are stored and used in the controller

  • How PV voltage, current, and power respond to irradiance variations

𝐂𝐨𝐧𝐜𝐥𝐮𝐬𝐢𝐨𝐧

The PSO Sliding Mode Based Variable Step P&O MPPT in MATLAB model provides an effective platform for studying optimization-based solar PV maximum power point tracking.

The model combines PSO parameter optimization, Sliding Mode Control, and variable step-size P&O MPPT with a DC-DC boost converter.

With five controller parameters optimized using PSO and simulation under irradiance levels from 1000 W/m² to 400 W/m², the model clearly demonstrates how intelligent tuning and adaptive perturbation can be integrated into a PV MPPT system.

It is especially useful for understanding the connection between optimization algorithms, nonlinear control, power electronics, and solar energy conversion.

Comments


bottom of page