top of page

PSO Sliding Mode Based Variable Step P&O MPPT

PSO Sliding Mode Based Variable Step P&O MPPT


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


Maximum power point tracking is essential for extracting the available power from a solar photovoltaic system under changing irradiance conditions. A conventional Perturb and Observe controller normally uses a fixed step size, which creates a trade-off between tracking speed and steady-state oscillations.


PSO Sliding Mode Based Variable Step P&O MPPT


PSO Sliding Mode Based Variable Step P&O MPPT

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


This MATLAB/Simulink model combines:

  • 𝗣𝗮𝗿𝘁𝗶𝗰𝗹𝗲 𝗦𝘄𝗮𝗿𝗺 𝗢𝗽𝘁𝗶𝗺𝗶𝘇𝗮𝘁𝗶𝗼𝗻

  • 𝗦𝗹𝗶𝗱𝗶𝗻𝗴 𝗠𝗼𝗱𝗲 𝗖𝗼𝗻𝘁𝗿𝗼𝗹

  • Variable-step Perturb and Observe MPPT

  • A DC–DC boost converter

  • A 250 W solar PV panel

PSO is used to tune five controller parameters. The optimized sliding mode controller then generates a variable step size for the P&O MPPT algorithm.


𝐖𝐡𝐚𝐭 𝐈𝐬 𝐕𝐚𝐫𝐢𝐚𝐛𝐥𝐞-𝐒𝐭𝐞𝐩 𝐏&𝐎 𝐌𝐏𝐏𝐓?


The P&O algorithm changes the converter duty cycle and observes the resulting change in PV power.

A fixed-step P&O controller uses the same duty-cycle increment during the entire tracking process. A variable-step controller changes the step size according to the PV operating condition.

A larger step size can support:

  • Faster movement toward the maximum power point

  • Improved response after irradiance changes

  • Reduced initial tracking time

A smaller step size can support:

  • Fine adjustment near the maximum power point

  • Lower steady-state oscillations

  • More stable PV operation

In this model, the step size is produced by a 𝗣𝗦𝗢-𝘁𝘂𝗻𝗲𝗱 𝘀𝗹𝗶𝗱𝗶𝗻𝗴 𝗺𝗼𝗱𝗲 𝗰𝗼𝗻𝘁𝗿𝗼𝗹𝗹𝗲𝗿.


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


The complete simulation contains the following major sections:

  • Solar PV panel

  • Irradiance and temperature inputs

  • PV voltage and current measurements

  • PV power calculation

  • Sliding mode controller

  • Variable-step P&O MPPT controller

  • PWM pulse generator

  • DC–DC boost converter

  • Resistive load

  • Objective-function calculation

  • Voltage, current and power scopes

The measured PV voltage and current are used by the MPPT and sliding mode control sections. The final duty cycle controls the boost-converter switch.


𝐌𝐚𝐢𝐧 𝐒𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐏𝐚𝐫𝐚𝐦𝐞𝐭𝐞𝐫𝐬


Parameter

Value

PV panel rated power

250 W

PV configuration

One module

PSO population size

4

Maximum PSO iterations

10

Number of optimized parameters

5

Approximate function evaluations

40

Temperature used in the model

25°C

Converter type

Boost converter

MPPT technique

Variable-step P&O

Controller

Sliding mode controller

Optimization method

PSO

𝐏𝐒𝐎-𝐓𝐮𝐧𝐞𝐝 𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫


Particle Swarm Optimization is used to determine suitable values for five sliding mode controller gains.

The optimized parameters represented in the model include:

Tunable Parameter

Role in the Controller

Ka

Sliding mode control gain

Kb

Sliding mode control gain

Kc

Sliding mode control gain

Kd

Output scaling or dynamic gain

Ke

Step-size scaling gain

The exact influence of each gain depends on its position within the implemented sliding mode controller.

Why PSO tuning is used

Manual tuning of several controller gains can be difficult because:

  • The parameters influence one another.

  • A gain suitable for one irradiance level may not be ideal for another.

  • Poor tuning may create slow tracking or excessive oscillations.

  • Repeated trial-and-error simulations take considerable time.

PSO performs an organized search over the permitted parameter ranges and selects the parameter set that minimizes the selected objective value.


𝐎𝐛𝐣𝐞𝐜𝐭𝐢𝐯𝐞 𝐅𝐮𝐧𝐜𝐭𝐢𝐨𝐧


The model uses the difference between the desired maximum power and measured output power as the optimization error.

For the 250 W PV system:

  • The reference maximum power is set to 250 W.

  • The load power is measured during each simulation.

  • The absolute power error is calculated.

  • PSO attempts to minimize this error.

  • The controller gains associated with the lowest error are retained.

This approach tunes the sliding mode controller to support maximum-power extraction from the PV panel.


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


The combined control system has three main stages.

1. Sliding mode controller

The controller receives changes in PV voltage and current. It processes these variations using the optimized controller gains.

Its output represents the required change in the MPPT step size.

2. Variable-step P&O algorithm

The P&O controller receives:

  • The previous operating information

  • The variable step size generated by the sliding mode controller

It then increases or decreases the duty cycle according to the direction of PV power variation.

3. PWM and boost-converter control

The updated duty cycle is supplied to the PWM generator. The generated gate pulse controls the boost-converter switch and changes the PV operating point.


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


  1. The population size, iteration limit and parameter boundaries are defined.

  2. PSO generates four candidate sets of controller parameters.

  3. Each candidate set contains five decision variables.

  4. The parameter set is transferred to the Simulink controller.

  5. The complete PV and converter model is simulated.

  6. PV voltage, current and output power are measured.

  7. The error between the 250 W reference and measured power is calculated.

  8. The objective value is returned to the PSO algorithm.

  9. Personal-best and global-best solutions are updated.

  10. New parameter combinations are generated.

  11. The process is repeated for ten iterations.

  12. The best five controller gains are stored in the model workspace.

  13. The optimized gains are used in the final MPPT simulation.


𝐏𝐒𝐎 𝐎𝐩𝐭𝐢𝐦𝐢𝐳𝐚𝐭𝐢𝐨𝐧 𝐒𝐮𝐦𝐚𝐫𝐲

Optimization Item

Description

Search agents

Four particles

Decision variables

Five controller gains

Maximum iterations

Ten

Model execution

Once for each candidate parameter set

Fitness indicator

PV power-tracking error

Desired outcome

Minimum power error

Final output

Five optimized gain values

With four particles and ten iterations, the model performs approximately 40 primary parameter evaluations. Additional initial or final evaluations may occur depending on the PSO code structure.


𝐁𝐨𝐨𝐬𝐭 𝐂𝐨𝐧𝐯𝐞𝐫𝐭𝐞𝐫 𝐎𝐩𝐞𝐫𝐚𝐭𝐢𝐨𝐧


The boost converter is connected between the PV panel and the load.

Its main components include:

  • Input inductor

  • Controlled semiconductor switch

  • Diode

  • Input and output capacitors

  • Resistive load

  • Voltage and current measurement blocks

The converter duty cycle controls the electrical operating point of the PV panel. By continuously adjusting the duty cycle, the MPPT controller keeps the panel near its maximum-power region.


𝐒𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐓𝐞𝐬𝐭 𝐂𝐨𝐧𝐝𝐢𝐭𝐢𝐨𝐧𝐬


The model is tested using four irradiance levels.

Test 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 reduced in steps to examine whether the controller can continue tracking the available PV power.


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


The displayed results include:

  • PV voltage

  • Boost-converter output voltage

  • PV current

  • Boost-converter output current

  • PV power

  • Boost-converter output power

PV voltage response

The PV voltage remains close to the panel’s maximum-power operating region while irradiance changes.

The variable-step controller adjusts the converter duty cycle to prevent the operating point from moving far away from the maximum-power region.

PV current response

PV current decreases as irradiance is reduced.

This behaviour is expected because solar irradiance directly influences the photocurrent generated by the panel.

PV power response

The displayed PV power levels are approximately:

Irradiance

Approximate PV Power

1000 W/m²

250 W

800 W/m²

200 W

600 W/m²

150 W

400 W/m²

100 W

The results show that the extracted power changes proportionally with the applied irradiance profile.

Boost-converter response

The output voltage is higher than the PV voltage because of the boost-converter operation.

As irradiance decreases:

  • Available PV current decreases.

  • PV power decreases.

  • Converter output power decreases.

  • Load voltage and current settle at new operating values.


𝐑𝐞𝐬𝐮𝐥𝐭 𝐒𝐮𝐦𝐦𝐚𝐫𝐲


Operating Condition

Controller Action

Observed Response

High irradiance

Tracks the rated operating point

PV power approaches 250 W

Irradiance reduction

Adjusts the P&O step size

New maximum-power point is located

Near the optimum point

Reduces the effective search step

Stable operating response

Sudden irradiance change

Updates the converter duty cycle

Power settles at a new level

Multiple test stages

Maintains active MPPT operation

Power follows available irradiance

𝐊𝐞𝐲 𝐅𝐞𝐚𝐭𝐮𝐫𝐞𝐬


  • 𝗣𝗦𝗢-𝗯𝗮𝘀𝗲𝗱 tuning of five controller parameters

  • Sliding mode controller for step-size generation

  • Variable-step P&O MPPT implementation

  • 250 W solar PV panel model

  • DC–DC boost-converter interface

  • Power-error-based objective function

  • Automatic execution of the Simulink model during optimization

  • Model-workspace storage of optimized gains

  • Step-change irradiance testing

  • PV and load voltage monitoring

  • PV and load current monitoring

  • PV and converter power analysis

  • MATLAB/Simulink-based implementation


𝐀𝐝𝐯𝐚𝐧𝐭𝐚𝐠𝐞𝐬 𝐨𝐟 𝐭𝐡𝐞 𝐏𝐫𝐨𝐩𝐨𝐬𝐞𝐝 𝐂𝐨𝐦𝐛𝐢𝐧𝐚𝐭𝐢𝐨𝐧


Benefits of PSO

  • Automates controller-gain selection

  • Reduces dependence on manual tuning

  • Searches several parameter combinations

  • Uses the simulated system response as feedback

  • Selects the parameter set with the lowest objective value

Benefits of sliding mode control

  • Responds to changes in PV voltage and current

  • Produces a dynamic MPPT step size

  • Supports operation under changing irradiance

  • Provides a structured nonlinear control approach

Benefits of variable-step P&O

  • Uses a larger correction when far from the optimum point

  • Uses a smaller correction near the optimum point

  • Improves the balance between speed and stability

  • Adapts the duty-cycle increment during operation


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


This MATLAB/Simulink model can support the study of:

  • Standalone solar PV systems

  • Grid-connected PV converters

  • Solar battery-charging systems

  • PV-fed DC microgrids

  • Solar water-pumping systems

  • Renewable-energy control

  • Optimization-based controller tuning

  • Sliding mode control

  • Variable-step MPPT techniques

  • Intelligent power-electronic converters

  • Comparative MPPT analysis


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


The model is suitable for:

  • Students learning solar PV control

  • Researchers working on MPPT methods

  • Engineers studying DC–DC converters

  • MATLAB/Simulink learners

  • Power-electronics professionals

  • Renewable-energy trainers

  • Researchers comparing optimization algorithms


𝐖𝐡𝐚𝐭 𝐂𝐚𝐧 𝐁𝐞 𝐒𝐭𝐮𝐝𝐢𝐞𝐝?


Users can study:

  • How PSO tunes controller gains

  • How an objective function is linked with Simulink

  • How variable step size is generated

  • How the P&O duty cycle is updated

  • How a boost converter changes the PV operating point

  • How irradiance influences PV current and power

  • How optimized gains are stored and reused

  • How PV and converter outputs are compared


𝐂𝐨𝐧𝐜𝐥𝐮𝐬𝐢𝐨𝐧


The 𝗠𝗔𝗧𝗟𝗔𝗕 𝗦𝗶𝗺𝘂𝗹𝗮𝘁𝗶𝗼𝗻 𝗼𝗳 𝗣𝗦𝗢 𝗦𝗹𝗶𝗱𝗶𝗻𝗴 𝗠𝗼𝗱𝗲-𝗕𝗮𝘀𝗲𝗱 𝗩𝗮𝗿𝗶𝗮𝗯𝗹𝗲-𝗦𝘁𝗲𝗽 𝗣&𝗢 𝗠𝗣𝗣𝗧 presents a combined optimization and control approach for solar power tracking.

PSO determines five sliding mode controller gains by minimizing the error between the desired and measured power. The optimized controller generates a variable step size for the P&O algorithm, while the boost converter regulates the PV operating point.

The simulation demonstrates power tracking for irradiance levels of 1000, 800, 600 and 400 W/m². It provides a clear platform for understanding PSO tuning, sliding mode control, variable-step MPPT and solar PV converter operation.

Comments


bottom of page