From dbcaa2abfaf1c5da194f2f76f62c69da7dd01ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Mon, 13 Feb 2023 14:38:07 -0500 Subject: [PATCH] Manual: it is not possible to declare an exogenous or a parameter within an equation tag [skip ci] --- doc/manual/source/the-model-file.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/manual/source/the-model-file.rst b/doc/manual/source/the-model-file.rst index bf8608f1b..fe5071476 100644 --- a/doc/manual/source/the-model-file.rst +++ b/doc/manual/source/the-model-file.rst @@ -484,11 +484,11 @@ On-the-fly Model Variable Declaration 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 -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 -variable to be declared (``endogenous``, ``exogenous``, or -``parameter`` followed by an equal sign and the variable name in single +To declare an endogenous variable on-the-fly in an equation tag, simply write +``endogenous`` followed by an equal sign and the variable name in single quotes. Hence, to declare a variable ``c`` as endogenous in an equation tag, you can type ``[endogenous='c']``.