

    \filetitle{chksstate}{Check if equations hold for currently assigned steady0state values}{model/chksstate}

	\paragraph{Syntax}
 
 \begin{verbatim}
 [FLAG,LIST] = chksstate(M,...)
 [FLAG,DISCREP,LIST] = chksstate(M,...)
 \end{verbatim}
 \paragraph{Input arguments}
 
 \begin{itemize}
 \item
   \texttt{M} {[} model {]} - Model object.
 \end{itemize}
 \paragraph{Output arguments}
 
 \begin{itemize}
 \item
   \texttt{FLAG} {[} \texttt{true} \textbar{} \texttt{false} {]} - True
   if discrepancy between LHS and RHS is smaller than
   \texttt{'tolerance='} in each equation.
 \item
   \texttt{DISCREP} {[} numeric {]} - Discrepancy between LHS and RHS in
   each equation evaluated at two consecutive times.
 \item
   \texttt{LIST} {[} cellstr {]} - List of equations in which the
   discrepancy between LHS and RHS is greater than \texttt{'tolerance='}.
 \end{itemize}
 \paragraph{Options}
 
 \begin{itemize}
 \item
   \texttt{'error='} {[} \texttt{true} \textbar{} \emph{\texttt{false}}
   {]} - Throw an error if one or more equations do not hold.
 \item
   \texttt{'refresh='} {[} \emph{\texttt{true}} \textbar{} \texttt{false}
   {]} - Refresh dynamic links before evaluating the equations.
 \item
   \texttt{'sort='} {[} \texttt{true} \textbar{} \emph{\texttt{false}}
   {]} - Undocumented option.
 \item
   \texttt{'sstateEqtn='} {[} \texttt{true} \textbar{}
   \emph{\texttt{false}} {]} - If \texttt{false}, the dynamic model
   equations will be checked; if \texttt{true}, the steady-state versions
   of the equations (wherever available) will be checked.
 \item
   \texttt{'tolerance='} {[} numeric \textbar{} \texttt{getrealsmall()}
   {]} - Tolerance.
 \item
   \texttt{'warning='} {[} \emph{\texttt{true}} \textbar{} \texttt{false}
   {]} - Display warnings produced by this function.
 \end{itemize}
 \paragraph{Description}
 
 \paragraph{Example}


