Skip to content

"strict" parameter in Limiters #3968

Answered by MartinOtter
dariomangoni asked this question in Q&A
Discussion options

You must be logged in to vote

In Modelica.Blocks.Nonlinear.Limiter/VariableLimiter/SlewRateLimiter, I noticed that:
* the if strict branch has noEvents wrapping some conditions e.g. noEvent(if u > uMax then ...)
* the else branch does not.
To me it should be exactly the opposite: I assume that the event generation is much stricter in catching any change in the condition. Is there anyone that can explain me why is the opposite?

The "strict" here means that it is guaranteed that the respective branch is only evaluated, if signaled by the condition.
E.g. if uMax == 1, the then branch in "if u > uMax then ..." is only evaluated if u > 1 (which is guaranteed by "noEvent(..)").
Instead, without a noEvent, it could be that…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dariomangoni
Comment options

Answer selected by dietmarw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
L: Blocks Issue addresses Modelica.Blocks
3 participants