Can Simulink and other simulation software be repeatedly executed through Matlab scripts when simulating together?

Simulink makes designing controllers very convenient, and AMESim is also very convenient to use in its field. My idea is that some algorithms for optimizing PID (such as particle swarm optimization) require repeatedly running the Simulink model during the iteration process to obtain better PID parameters. So, if the two software are used for co-simulation, will both of them go through the iterative process simultaneously?

Réponses (1)

Hi yiwei,
There are several options for running Simulink simulations from Matlab scripts. Start from Run Simulations and then go through Run Individual Simulations and/or Run Multiple Simulations from that page to see if either fits your needs. I don't know what AMESim is, so can't comment on how Simulink would be used in this context. If you can provide a bit more context of the AMESim workflow, then maybe a solution path will be more clear.

Catégories

En savoir plus sur Manual Performance Optimization dans Centre d'aide et File Exchange

Question posée :

le 4 Fév 2026 à 9:35

Réponse apportée :

le 4 Fév 2026 à 12:27

Community Treasure Hunt

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

Start Hunting!

Translated by