PSO in simulink

100 ビュー (過去 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 件のコメント
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 件のコメント
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 件のコメント
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?

Community Treasure Hunt

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

Start Hunting!

Translated by