How can I simulate online PSO based MPPT in simulink?

Hi, By using script of Particle Swarm Optimization that contains function handle that defines function like Power by simout of simulink model and sim command I can simulate an offline PSO based MPPT of PV ARRAY, that runs model and evaluate results for particles and iterations. But my question exactly is that can I use MATLAB FUNCTION block in model and put PSO code in it as a function and feed its output(duty cycle) to PWM GENERATOR to track MPP online? Thanks

Answers (1)

Yes, you can use the MATLAB Function block in Simulink to implement custom code, including a Particle Swarm Optimization (PSO) algorithm.

Communities

More Answers in the  Power Electronics Control

Products

Release

R2016a

Asked:

on 13 Jun 2018

Answered:

on 24 Jan 2024

Community Treasure Hunt

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

Start Hunting!