Not suppressable warnings in Simulink

Hi,
I have the following issue:
"The message identifier Simulink:Engine:NonTunableVarChangedInFastRestart cannot be suppressed."
Why is it not possible and when will it be fixed?
Is there a workaround?
I just don't want to see those messages. There is more important information to be displayed.
BR
Christian

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 10 Août 2023

0 votes

Between fast restart simulations, you have some variables that have changed their values. But these variables are non-tunable. That is why the warning messages popped up.
Your options:
  1. Ignore the messages because you know they don't matter to you.
  2. Make sure the values for those variables are not changed. The change won't have effect anyway, because those variables are non-tunable. The value for those variables are built into the fast restart optimization. Maybe the change was made by mistake?
  3. Set those variables to be tunable. Then the change of value will impact the simulation result.

3 commentaires

Christian
Christian le 10 Août 2023
Thank you for your answer. The variables are saved in a struct. Some tunable parameters in the struct are changed. Untunable parameters remain unchanged. So the message is not accurate in my case.
My issue is: I want to suppress the message. I use my model in parallelized optimization and I need to monitor relevant messages. It is not helpful that the mentioned warning pops up the 10000 times my model is executed.
Walter Roberson
Walter Roberson le 10 Août 2023
The variables are saved in a struct.
Create one struct for the tunables and a different struct for the non-tunables.
Christian
Christian le 10 Août 2023
Thank you for this idea. Unfortunately I have to consider it as my last option. There are a total of 560 parameters that are implemented by different developers. It would be a tedious task to sort them by tunable and non tunable.

Connectez-vous pour commenter.

Catégories

Produits

Version

R2021b

Question posée :

le 10 Août 2023

Commenté :

le 10 Août 2023

Community Treasure Hunt

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

Start Hunting!

Translated by