PSO in simulink
104 views (last 30 days)
Seth Popinchalk on 10 Feb 2011
Edited: John Kelly on 27 May 2014
In general, optimization is applied to a Simulink model using MATLAB commands to adjust variables that define the parameters of the simulation. Using Particle Swarm Optimization (PSO) to optimize a system modeled in Simulink can use the same approach. Define the system you would like to optimize in Simulink and some measurement of quality of the solution based on the outputs of the simulation. Use MATLAB workspace variables to define the parameters of the system that are changing, including initial conditions or input signals to the model. The simulation can be run using the sim command to generate the outputs of the model.
Using a PSO Algorithm initialize the particles using random positions in your solution space. Run a simulation for each particle so you can calculate the quality measure. Update the particles best known position if you have improved this measure of quality.
Each particle solution can be run in parallel by running the sim command within a parfor loop.
Kiprono on 12 Feb 2013
addie irawan on 1 Mar 2011
Nice sharing, I also tried the same thing as your suggested above. However it is still limited for real-time implementation such as for xPC target. Is there have any WAY that suitable for real-time implementation for PSO?
Zeeshan Shareef on 12 Jun 2011
Dear Frends, I also want to optimize the PID Controller using the PSO algorithm. Is there any code availabe or toolbox in MATLAB to optimize the PID controller or any other controller ? ? Thanks, Zeeshan Shareef
ME CONTROL SYSTEMS on 12 Jul 2011
I want to optimize the tuning parameters of PID controller using PSO algorithm. Also I want to optimize the PID controller by minimizing ISE. Is this possible using MATLAB or Simulink. Pl help me...!!!
Balajee. K. A
ALI on 12 Oct 2011
I want to optimize the tuning parameters of PID controller using PSO algorithm. Also I want to optimize the PID controller by minimizing ISE. Is this possible using MATLAB
ahmed ali on 28 Aug 2016
hi ,, i want to know the s code of the particle swarm optimization algorithm inside ''s-function builder'' please so urgent
GEETHANJALI K on 16 Mar 2018
I Want to MIMO beamforming using pso algorithm in matlab simulink diagram. can you help me?