PSO in simulink

61 vues (au cours des 30 derniers jours)
Recep
Recep le 8 Fév 2011
Commenté : ATHIRAH AYOB le 8 Juin 2022
Hi. I want to run PSO algorithm in Simulink with s-functions.I will do optimization of control system with PSO. Could you help me? You can suggest anathor way for this. Thank you very much.
  2 commentaires
Guy Rouleau
Guy Rouleau le 9 Fév 2011
By PSO, I assume you mean the Pittsburgh Symphony Orchestra?
Gert Kruger
Gert Kruger le 8 Oct 2016
LOL

Connectez-vous pour commenter.

Réponses (11)

Seth Popinchalk
Seth Popinchalk le 10 Fév 2011
Modifié(e) : John Kelly le 27 Mai 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.
  4 commentaires
Sriniwas@AT
Sriniwas@AT le 13 Juin 2013
Seth Popinchalk - Is it really possible to implement Partcile Swarm Optimization algorithm for online optimization rather than offline optimization?
My idea was to perform this PSO algorithm using an Embedded Matlab Function block inside a simulink model.
Bahaa Abdulkhaliq
Bahaa Abdulkhaliq le 3 Déc 2018
hello, please how can i perform pso code inside an embedded function . lhave some problems

Connectez-vous pour commenter.


mohamed elbesealy
mohamed elbesealy le 8 Oct 2016
  4 commentaires
Quan Zhou
Quan Zhou le 31 Jan 2017
this is an offline optimisation, the connection among m-file and Simulink is in the tracklsq.m file. hope this would help. In addition, have you find any online demo using PSO controller in the loop.
syukron jamil
syukron jamil le 13 Sep 2017
I don't understand. can you help me to make simulink pid pso? send to syukronjamils@gmail.com

Connectez-vous pour commenter.


Kiprono
Kiprono le 12 Fév 2013
Have a look at this paper. It explains pso implementation as an s-function: http://www.sciencedirect.com/science/article/pii/S0038092X12001247

Addie
Addie le 1 Mar 2011
Dear Seth;
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?
Thanks
Addie

Zeeshan Shareef
Zeeshan Shareef le 12 Juin 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
  1 commentaire
ATHIRAH AYOB
ATHIRAH AYOB le 8 Juin 2022
Hi zeeshan, did you get anything?

Connectez-vous pour commenter.


ME CONTROL SYSTEMS
ME CONTROL SYSTEMS le 12 Juil 2011
Dear friends.,
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...!!!
Regards.,
Balajee. K. A

ALI
ALI le 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
ahmed ali le 28 Août 2016
hi ,, i want to know the s code of the particle swarm optimization algorithm inside ''s-function builder'' please so urgent
thanks

Tayab Azad
Tayab Azad le 16 Nov 2017
Hi, I also don't understand that how to do online tuning of PID using PSO in simulink. can you help me to do online tuning of PID using PSO in simulink. Pls email me on ubashir1@yahoo.com
  1 commentaire
TAHAR NOUAOUI
TAHAR NOUAOUI le 11 Jan 2022
did y find anything?

Connectez-vous pour commenter.


GEETHANJALI K
GEETHANJALI K le 16 Mar 2018
I Want to MIMO beamforming using pso algorithm in matlab simulink diagram. can you help me?

Marwen FASSATOUI
Marwen FASSATOUI le 6 Nov 2018
Modifié(e) : Marwen FASSATOUI le 6 Nov 2018
Dear Frends, I also want to optimize the Lyapunov Function using the PSO algorithm.Is there any code availabe or toolbox in MATLAB to optimize? Can you help me?

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by