Skip to content

Commit

Permalink
ForgotToSave
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Oct 15, 2021
1 parent 530ea2f commit 544ae66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/equations.tex
Expand Up @@ -889,8 +889,8 @@ \subsection{Recommended selection of start values}\label{recommended-selection-o
If a \lstinline!start!-attribute is set by a possibly hierarchical modifier at the top level, then this \lstinline!start!-attribute has the highest confidence, namely 1 irrespectively on what level, the variable itself is declared.
In case this process is \emph{tied} and at least one of the \lstinline!start!-attributes is equal to a parameter, which may be equal to another parameter (etc), the confidence number is propagated through these bindings and used to break the tie.
Note that this is only applied if the expression is exactly the parameter - not an expression depending on one or more parameters.

\begin{example}
Simplified example showing the priority of start-values
\begin{lstlisting}[language=modelica]
model M1
Real x(start = 4.0);
Expand All @@ -911,7 +911,7 @@ \subsection{Recommended selection of start values}\label{recommended-selection-o
// over m1.y.start = 5.0 with confidence number 2.
M2 m2(xStart = 3.0);
// Using m2.x.start = m2.xStart = 3.0 with confidence number 2, and tie-breaker 1
// over m2.y.start = m2.yStart = 5.0 with confidence number 2, and tie-breaker 1
// over m2.y.start = m2.yStart = 5.0 with confidence number 2, and tie-breaker 2
\end{lstlisting}
\end{example}
\end{nonnormative}

0 comments on commit 544ae66

Please sign in to comment.