Examples - Evaluating Expressions


1. In ORANIG the market clearing equations for domestic commodities have the terms V3BAS(c,"dom") * x3(c,"dom") on the right-hand side. [This term is 100 times the change in the volume of household consumption of domestically produced commodity c, assuming that the pre-simulation volume is the pre-simulation value of V3BAS(c,"dom").] If you enter the expression

(All,c,COM) V3BAS(c,"dom") * x3(c,"dom") ;

into the memo on the AnalyseGE form (or if you select this expression in the TABmate form), you will see these values for each commodity c in the ViewHAR form.

2. Also in ORANIG, the formula for calculating the value of household purchases of commodity c from source s (domestic or imported) is

(All,c,COM)(All,s,SRC) V3PUR(c,s) =

V3BAS(c,s) + V3TAX(c,s) + SUM(m,MAR, V3MAR(c,s,m) ) ;

You can ask AnalyseGE to evaluate any of the expressions

(All,c,COM) (Choose s,SRC = dom) V3BAS(c,s) + V3TAX(c,s) ;

(All,c,COM)(All,s,SRC) SUM(m,MAR, V3MAR(c,s,m) ) ;

V3BAS ;

V3BAS(c,s) + V3TAX(c,s) ;

The first of these will report only the values for domestically produced commodities. The third will report all values of V3BAS ( that is, the values of V3BAS(c,s) for all c in COM and all s in SRC). The fourth of these will calculate and report the sum for all c in COM and all s in SRC.



URL of this topic: www.copsmodels.com/webhelp/analysege/hc_introexample.htm

Link to full GEMPACK Manual

Link to GEMPACK homepage