Skip to content
Snippets Groups Projects
Verified Commit dbcaa2ab authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Manual: it is not possible to declare an exogenous or a parameter within an equation tag

[skip ci]
parent 659474bd
Branches
Tags
No related merge requests found
...@@ -484,11 +484,11 @@ On-the-fly Model Variable Declaration ...@@ -484,11 +484,11 @@ On-the-fly Model Variable Declaration
   
Endogenous variables, exogenous variables, and parameters can also be declared Endogenous variables, exogenous variables, and parameters can also be declared
inside the model block. You can do this in two different ways: either via the inside the model block. You can do this in two different ways: either via the
equation tag or directly in an equation. equation tag (only for endogenous variables) or directly in an equation (for
endogenous, exogenous or parameters).
   
To declare a variable on-the-fly in an equation tag, simply state the type of To declare an endogenous variable on-the-fly in an equation tag, simply write
variable to be declared (``endogenous``, ``exogenous``, or ``endogenous`` followed by an equal sign and the variable name in single
``parameter`` followed by an equal sign and the variable name in single
quotes. Hence, to declare a variable ``c`` as endogenous in an equation tag, quotes. Hence, to declare a variable ``c`` as endogenous in an equation tag,
you can type ``[endogenous='c']``. you can type ``[endogenous='c']``.
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment