how to stop simulink file ?

Is there a way to stop a simulation that has been started using the sim command if the simulation is taking too long to complete? The simulation is being run from an m file inside a loop. I'm trying to optimise a model's parameters using a genetic algorithm. I've set a minimum step size to "auto" but there are certain combinations of parameters that are causing the simulation to hang because "unable to reduce the step size without violating a minimum step size " Thanks for your help

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 27 de Mzo. de 2016

0 votos

set_param(gcs, 'SimulationCommand', 'stop')

Categorías

Más información sobre Modeling en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de Mzo. de 2016

Respondida:

el 27 de Mzo. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by