File Exchange

image thumbnail

PV System with optimization algorithms

version 4.0.0 (57.1 KB) by SIHAM ALKHASHIEF
The Simulink model based on PV system (consisting of PV, Battery, Converter, PI Controller, inverter, and charge controller


Updated 06 Dec 2019

View Version History

View License

In this Project we design the Simulink model based on PV system (consisting of PV, Battery, Converter, PI Controller, inverter, and charge control) architecture. Next we deploy the MPPT Controller. Next we apply optimization algorithm in MPPT controller. The optimization algorithm used are, Genetic Algorithm (GA), Particle Swarm Optimization (PSO), and Neural Network (NN). The optimal value is based on insolation and temperature. Then we calculate the maximum power and voltage from optimization algorithm. Next we implement inverter which is convert electricity produced by the system from DC to AC power. Then the charge controller able to prevent over charging with connected a battery. Finally, the designed system is evaluated with the following plots for individual scenario Voltage, Current, and Power.

Cite As

SIHAM ALKHASHIEF (2021). PV System with optimization algorithms (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (15)

Akram Nid

Thanks for the model can you please send PSO.m and simulink model in R2017a if you email is

moayed mohamed

this problem, error at initialization command can't be evaluated
caused by "varargout"

ahmed solar

for the full Matlab code and Simulink please contact me:

doaa sh

my email is

nivedita Singh

Thanks for the model can you please send PSO.m or GA. m file for optimization. I am struggling in this part.
email id

almontaser hussein

very usefull and running like a charm, but only GA is implemented .. ;)

asmaa shata

please, can you write the name of paper or documentation you depend on to do this system


the parameters of the simulation are needed and previous version please,

feng feng

could you kindly share the initial file or similar to me via otherwise, the file cannot run.
Thanks in advance!

Zeeshan Arfeen

it is made in 2017 b
i want in 16 a

karim bouyahyaoui

please can you send me the GA.m file on my email adress:

hejer ghribi

Can you please upload this file to a previous versions (matlab 2016b) or just send me the PSO.m file on my email adress

Hammed Omotoso

taghreed nosair

please can you upload this file with previous versions such as matlab 2014

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!