Figure 21 Syntax for the command Parameters – Two alternative ways for the specification of the command is illustrated in Figure 22. Figure 22 - Alternative syntax for the command Parameters GAMS also accepts to break this one statement into four, putting a semicolon at the end of each of them, as illustrated for the first alternative by Figure 23. Figure 23 Alternative use of semicolon – in Parameters entry The use of tables and direct assignment for data entry will be illustrated in the following, when requested by the examples. 3.4.3. Variables The command Variables defines the endogenous variables used in the model. They must be declared and optionally defined. Declaration consists in listing the variables with a short description of each of them and end with a semicolon, as illustrated by Figure 24 for our example. Figure 24 Declaration of the command Variables – The syntax for this command is presented in Figure 25. Figure 25 - Syntax for the command Variables Definition is an optional component that usually refers to the specification of the variable type, as reported in Table 5.
Figure 21 – Syntax for the command Parameters Two alternative ways for the specification of the command is illustrated in Figure 22. Figure 22 - Alternative syntax for the command Parameters GAMS also accepts to break this one statement into four, putting a semicolon at the end of each of them, as illustrated for the first alternative by Figure 23. Figure 23 – Alternative use of semicolon in Parameters entry The use of tables and direct assignment for data entry will be illustrated in the following, when requested by the examples. 3.4.3. Variables The command Variables defines the endogenous variables used in the model. They must be declared and optionally defined. Declaration consists in listing the variables with a short description of each of them and end with a semicolon, as illustrated by Figure 24 for our example. Figure 24 – Declaration of the command Variables The syntax for this command is presented in Figure 25. Figure 25 - Syntax for the command Variables Definition is an optional component that usually refers to the specification of the variable type, as reported in Table 5.
primaparte.docx