You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example in 3.8.3 Discrete-Time Expressions contains the following false statement about violating variability rules:
equation
b = noEvent(x > 1) // error, since b is a discrete-time expr. and
// noEvent(x > 1) is not a discrete-time expr.
The problem is that there is no stated rule that allows use of variability to analyze normal equations. All one can say is that the equation cannot be used to solve for anything, but with the current specification, one needs to draw that conclusion without help of expression variability rules. Instead, one must go to the definition of variability of a variable to see that this equation cannot be used to solve for b, and then it becomes evident that the equation is useless and cannot be solved.
The text was updated successfully, but these errors were encountered:
A remedy for this situation, that will allow allow this equation to be rejected based on the perfect matching rule and variability analysis, is proposed in the following PR: #2526
* Fix and extend example on variability rules
* Clarify the role of rules based on expression variability
* Elaborate a little bit on the 'perfect matching rule'
* A variable declared with 'constant' prefix is unaffected by the initialization problem
Closes#2525
The example in 3.8.3 Discrete-Time Expressions contains the following false statement about violating variability rules:
The problem is that there is no stated rule that allows use of variability to analyze normal equations. All one can say is that the equation cannot be used to solve for anything, but with the current specification, one needs to draw that conclusion without help of expression variability rules. Instead, one must go to the definition of variability of a variable to see that this equation cannot be used to solve for
b
, and then it becomes evident that the equation is useless and cannot be solved.The text was updated successfully, but these errors were encountered: