Skip to content

Commit

Permalink
AsSuggested
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Aug 8, 2024
1 parent 2362dbc commit be0a158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ \subsection{Discrete-Time Variables}\label{discrete-time-variables}
Note that this is not the same as saying that \lstinline!der(vd) = 0! almost everywhere, as the derivative is not even defined at the events.
It is not allowed to apply \lstinline!der! to discrete-time variables.

If a \lstinline!Real! variable is declared with the prefix \lstinline!discrete!\indexinline{discrete} it must in a simulation model be assigned in a \lstinline!when!-clause, either by an assignment or an equation.
If a \lstinline!Real! variable in a simulation model is declared with the prefix \lstinline!discrete!\indexinline{discrete}, it must be assigned in a \lstinline!when!-clause, either by an assignment or an equation.
The variable assigned in a \lstinline!when!-clause shall not be defined in a sub-component of \lstinline!model! or \lstinline!block! specialized class.
(This is to keep the property of balanced models.)

Expand Down

0 comments on commit be0a158

Please sign in to comment.