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

Answers (1)

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 Comments

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.
The variables are saved in a struct.
Create one struct for the tunables and a different struct for the non-tunables.
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.

Sign in to comment.

Categories

Products

Release

R2021b

Asked:

on 10 Aug 2023

Commented:

on 10 Aug 2023

Community Treasure Hunt

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

Start Hunting!