IRIS Toolbox Reference Manual

## chksstate

Check if equations hold for currently assigned steady0state values

#### Syntax

    [Flag,List] = chksstate(M,...)
    [Flag,Discr,List] = chksstate(M,...)

#### Input arguments

- `M` [ model ] - Model object.

#### Output arguments

- `Flag` [ `true` | `false` ] - True if discrepancy between LHS and RHS is smaller than `'tolerance='` in each equation.

- `Discr` [ numeric ] - Discrancy between LHS and RHS evaluated for each equation at two consecutive times.

- `List` [ cellstr ] - List of equations in which the discrepancy between LHS and RHS is greater than `'tolerance='`.

#### Options

- `'error='` [ `true` | `false` ] - Throw an error if one or more equations do not hold.

- `'refresh='` [ `true` | `false` ] - Refresh dynamic links before evaluating the equations.

- `'sstateEqtn='` [ `true` | `false` ] - If `false`, the dynamic model equations will be checked; if `true`, the steady-state versions of the equations (wherever available) will be checked.

- `'tolerance='` [ numeric | `getrealsmall()` ] - Tolerance.

- `'warning='` [ `true` | `false` ] - Display warnings produced by this function.

#### Description

#### Example

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.