Parllel particle swarm optimization with simulink

7 views (last 30 days)
Hello,
I have set up a particle swarm optimization to optimise the parameters of a Simulink model. In my cost function I call the simulation with the sim command, read constants and input data from the workspace and used the result of the simulation to calculate an error. This error should be minimised by the PSO. Unfortunately, the optimisation on my PC is very time-consuming, which is why I would like to speed it up by parallelising it (first locally then on a cluster). My question is whether it is at all possible to parallelise the alogrithm with a simullink model in the cost function and if so, how I have to prepare/set up the model, since simply loading data from the workspace no longer works. Thank you very much in advance!
Best
Lukas
  1 Comment
Alvaro
Alvaro on 27 Jan 2023
How did you set up PSO? Did you build your custom version in Simulink or are you using particleswarm inside a MATLAB function block?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!