PSO in simulink

조회 수: 57 (최근 30일)
Recep
Recep 2011년 2월 8일
댓글: ATHIRAH AYOB 2022년 6월 8일
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
Guy Rouleau
Guy Rouleau 2011년 2월 9일
By PSO, I assume you mean the Pittsburgh Symphony Orchestra?
Gert Kruger
Gert Kruger 2016년 10월 8일
LOL

댓글을 달려면 로그인하십시오.

답변 (11개)

Seth Popinchalk
Seth Popinchalk 2011년 2월 10일
편집: John Kelly 2014년 5월 27일
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
Sriniwas@AT
Sriniwas@AT 2013년 6월 13일
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 2018년 12월 3일
hello, please how can i perform pso code inside an embedded function . lhave some problems

댓글을 달려면 로그인하십시오.


mohamed elbesealy
mohamed elbesealy 2016년 10월 8일
  댓글 수: 4
Quan Zhou
Quan Zhou 2017년 1월 31일
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 2017년 9월 13일
I don't understand. can you help me to make simulink pid pso? send to syukronjamils@gmail.com

댓글을 달려면 로그인하십시오.


Kiprono
Kiprono 2013년 2월 12일
Have a look at this paper. It explains pso implementation as an s-function: http://www.sciencedirect.com/science/article/pii/S0038092X12001247

Addie
Addie 2011년 3월 1일
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 2011년 6월 12일
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
ATHIRAH AYOB
ATHIRAH AYOB 2022년 6월 8일
Hi zeeshan, did you get anything?

댓글을 달려면 로그인하십시오.


ME CONTROL SYSTEMS
ME CONTROL SYSTEMS 2011년 7월 12일
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 2011년 10월 12일
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 2016년 8월 28일
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 2017년 11월 16일
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
TAHAR NOUAOUI
TAHAR NOUAOUI 2022년 1월 11일
did y find anything?

댓글을 달려면 로그인하십시오.


GEETHANJALI K
GEETHANJALI K 2018년 3월 16일
I Want to MIMO beamforming using pso algorithm in matlab simulink diagram. can you help me?

Marwen FASSATOUI
Marwen FASSATOUI 2018년 11월 6일
편집: Marwen FASSATOUI 2018년 11월 6일
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?

카테고리

Help CenterFile Exchange에서 Particle Swarm에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by