A Standard Computable General Equilibriu
A Standard Computable General Equilibriu
Hans Lofgren
Rebecca Lee Harris
Sherman Robinson
With assistance from
Marcelle Thomas
Moataz El-Said
About GAMS
The General Algebraic Modeling System ( GAMS) is a high - level modeling system for mathemati-
cal programming problems . It consists of a language compiler and a stable of integrated high-
performance solvers . GAMS is tailored for complex, large -scale modeling applications , and
allows you to build large maintainable models that can be adapted quickly to new situations .
GAMS allows the user to concentrate on the modeling problem by making the setup simple.
The system takes care of the time - consuming details of the specific machine and system soft-
ware implementation . For more information , visit www.gams.com .
Copyright 2002 International Food Policy Research Institute . All rights reserved . Sections of this report may be reproduced with-
out the express permission of but with acknowledgment to the International Food Policy Research Institute .
ISBN 0-896-29720-9
A STANDARD COMPUTABLE
GENERAL EQUILIBRIUM (CGE)
MODEL IN GAMS
HANS LOFGREN
REBECCA LEE HARRIS
SHERMAN ROBINSON
All rights reserved. Sections of this book may be reproduced without the express
permission of, but with acknowledgment to, the International Food Policy
Research Institute.
Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .v
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .vi
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Institutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
Appendix A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
Appendix B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68
iii
TABLES
1. The Basic SAM structure used in the CGE model . . . . . . . . . . . . . . .5
iv
FIGURES
1. Production technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
v
PREFACE
Over the past decade, the increasing power and reliability of microcom-
puters and the development of sophisticated software designed specifically
for use with them has led to significant changes in the way quantitative
food policy analysis is conducted. These changes cover most aspects of the
analysis, ranging from the collections and analysis of socioeconomic data
to the conduct of model-based policy simulations. The venue of the com-
putations has shifted from off-site mainframes dependent on highly
trained operators and significant capital investment in supporting equip-
ment, to desktop and laptop computers dependent only on the occasional
availability of electricity. This means that it is now feasible to quickly
transfer new techniques between IFPRI and its collaborators in develop-
ing countries, that the costs of policy analysis have been substantially re-
duced, and that a new level of complexity and accuracy in policy analysis
is now possible.
As with any new technology, however, substantial costs in time and
money are involved in learning the most efficient ways of using this new
technology and then transmitting these lessons to others. This series, Mi-
crocomputers in Policy Research, represents IFPRI's ongoing collective ex-
perience in adapting microcomputer technology for use in food policy
analysis in developing countries. Publication decisions are made on the
basis of a review by an external referee. The manuals in the series are pri-
marily for the purpose of sharing these lessons with potential users in de-
veloping countries, although persons and institutions in developed coun-
tries may also find them useful. The series is designed to provide hands-
on methods for quantities food policy analysis. In our opinion, examples
provide the best and clearest form of instruction; therefore, examples—in-
cluding actual software codes wherever relevant—are used extensively
throughout this series.
Computable general equilibrium (CGE) models are used widely in pol-
icy analysis, especially in developed-country academic settings. The pur-
pose of the fifth volume in the series, A Standard Computable General
Equilibrium (CGE) Model in GAMS, by Hans Lofgren, Rebecca Lee Har-
ris, and Sherman Robinson, with assistance from Marcelle Thomas and
Moataz El-Said, is to contribute to and facilitate the use of this class of
models in developing countries. The volume includes a detailed presenta-
tion of a static "standard" CGE model and its required database. The
model is written for application at the country level; however, only mini-
mal changes are needed before it can be applied to a region within a coun-
try (such as a village) or to a farm household involved in production and
consumption activities. The model incorporates features developed over
recent years through IFPRI's research projects. These features—of partic-
ular importance in developing countries—include household consumption
of nonmarketed ("home") commodities, explicit treatment of transaction
costs for commodities that enter the market sphere, and a separation be-
tween production activities and commodities that permits any activity to
produce multiple commodities and any commodity to be produced by mul-
tiple activities. The manual discusses the implementation of the model in
GAMS (the General Algebraic Modeling System) and is accompanied by a
CD-ROM that includes the GAMS files for the model, sample databases,
simulations, solution reports, and a social accounting matrix (SAM)
vi
vii
The authors would like to thank Ed Taylor for a constructive review, and Renger van
Nieuwkoop and Jennifer Chung-I Li for useful comments.
1We assume that the reader has a basic familiarity with CGE modeling using GAMS.
Brooke et al. (1998) is the basic reference on the GAMS software; it also includes a
self-contained tutorial. The basics of GAMS-based CGE modeling are summarized in
Robinson et al. (1999). Lofgren (2000a, 2000b) presents a set of hands-on exercises
in CGE modeling with GAMS. Extensive treatments of CGE methods are found in
Dervis et al. (1982), Robinson (1989), Shoven and Whalley (1992), Dixon et al.
(1992), and Ginsburgh and Keyzer (1997). References to and examples of CGE-based
analyses of food policy in developing countries are found in the Trade and Macro-
economics Division section of the IFPRI website (www.ifpri.org).
1
2
2To apply the model to a region or a household, the only changes needed involve the
addition of new rules for closing the accounts for the government and the rest of the
world (now representing the economy outside the region or the household). The
database (including the SAM) should then represent a region or a farm household.
2. THE SOCIAL ACCOUNTING
MATRIX
A social accounting matrix (SAM) is a comprehensive, economywide data
framework, typically representing the economy of a nation.3 More techni-
cally, a SAM is a square matrix in which each account is represented by a
row and a column. Each cell shows the payment from the account of its
column to the account of its row. Thus, the incomes of an account appear
along its row and its expenditures along its column. The underlying prin-
ciple of double-entry accounting requires that, for each account in the
SAM, total revenue (row total) equals total expenditure (column total).4
Table 1 shows an aggregated SAM with verbal explanations in the cells
instead of numbers. With one exception, it has all of the features required
for implementation with the standard CGE model. The exception is that
in the standard SAM, taxes have to be paid to tax accounts, disaggregated
by tax type, each of which forwards its revenues to the core government
account. The tax types are divided into direct taxes (on domestic non-
government institutions and factors), commodity sales taxes, import
taxes, export taxes, activity taxes, and value-added taxes. Also note that,
in the standard SAM, payments are not permitted in the blank cells of
Table 1. Any original SAM that includes such payments should be re-
structured before being implemented with the standard CGE model.5
Table 2 shows a real-world standard SAM for Zimbabwe in which the
tax accounts are treated in the required manner.6 In addition, it has mul-
tiple accounts for activities, commodities, factors, and domestic non-
3For general discussions of SAMs, see Pyatt and Round (1985) and Reinert and
Roland-Holst (1997); for perspectives on SAM-based modeling, see Pyatt (1988) and
Robinson and Roland-Holst (1988).
4The GAMS program checks that the SAM that is entered is balanced (meaning the
row and column totals are equal for each account). If the absolute value of the sum
of account imbalances exceeds a cutoff point, an optimization program is used to es-
timate a balanced SAM. The program, which minimizes the entropy distance of the
cells of the estimated SAM from those of the initial SAM subject to the constraint
that row and column totals are equal, is primarily intended to remove rounding er-
rors. For SAM estimation in GAMS in a setting with substantial imbalances in raw
data (not only rounding errors), see Robinson and El-Said (2000) and Robinson, Cat-
taneo, and El-Said (2001).
5One common case would be payments from the government to factors (for the labor
services provided by government employees). To restructure the SAM to work with
the standard model, the preferred approach is to reallocate such payments to a
commodity for government services that pays a government service activity which,
in turn, pays the labor account.
6For other examples of SAMs that have the required structure, see the “data sets”
page on IFPRI’s website (www.ifpri.org).
3
4
government institutions. In each category, the GAMS code can handle any
desired disaggregation, including having just a single account. In any real-
world application, the preferred disaggregation of the SAM and the CGE
model depends on data availability and the purposes of the analysis. It is
typically preferable to include relatively detailed treatment in areas of in-
terest while keeping the database relatively aggregated in other areas.7
With regard to the structure of the standard SAM, a number of fea-
tures are noteworthy. First, the standard SAM distinguishes between ac-
counts for “activities” (the entities that carry out production) and “com-
modities.” The receipts are valued at producer prices in the activity ac-
counts and at market prices (including indirect commodity taxes and
transaction costs) in the commodity accounts. The commodities are activ-
ity outputs, either exported or sold domestically, and imports. This sepa-
ration of activities from commodities is preferred because it permits ac-
tivities to produce multiple commodities (for example, a dairy activity may
produce the commodities cheese and milk) while any commodity may be
produced by multiple activities (for example, activities for small-scale and
large-scale maize production may both produce the same maize commod-
ity). In the commodity columns, payments are made to domestic activities,
the rest of the world, and various tax accounts (for domestic and import
taxes). This treatment provides the data needed to model imports as per-
fect or imperfect substitutes vis-à-vis domestic production.8
Second, the matrix explicitly associates trade flows with transactions
(trade and transportation) costs, also referred to as marketing margins.
For each commodity, the SAM accounts for the costs associated with do-
mestic, import, and export marketing. For domestic marketing of domes-
tic output, the marketing margin represents the cost of moving the com-
modity from the producer to the domestic demander. For imports, it rep-
resents the cost of moving the commodity from the border (adding to the
c.i.f. price) to the domestic demander, while for exports, it shows the cost
of moving the commodity from the producer to the border (reducing the
price received by producers relative to the f.o.b. price). The Zimbabwe
SAM in Table 2 shows how these transaction costs appear in commodity
and activity accounts in the standard SAM: A services activity, in Table 2
called transportation (account 4), produces a commodity (account 8) that,
like other commodities, may be purchased for intermediate use by activi-
ties and for final use by institutions. However, the transportation
commodity also receives payments from three special accounts, represent-
ing the transaction costs associated with domestic sales, imports, and
exports (accounts 10-12).9 These special accounts are paid by the accounts
7The CD-ROM that accompanies this manual includes a program for aggregating an
existing SAM.
8In addition, our model code makes it possible to treat selected imports as separate,
“noncomparable” commodities (not produced domestically). In the commodity rows,
such import commodities receive payments from one or more domestic users. In the
columns, these payments would be passed on to the accounts for the rest of the
world, import marketing margins, and relevant taxes. The columns for this category
of imports do not have any payments to domestic activities.
Table
The
1-
model
CGE
the
in
used
structure
SAM
Basic
Expenditures
Savings- Rest
the
of
Receipts Activities Commodities
Factors Households Government Investment
Enterprises World
)(ROW Total
Activities
Agriculture
,1.
slarge
- cale 0
0 50,250 5,250
0
Agriculture
,2.
small
-scale 0 0 0 0 6070 0 0 0 0 0 0 0 0 0 685 0 0 0 0 0 0 0 0
1,355
Industry
3. 0 0 0 0 0 1007,859 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 107,859
Transportation
4. 0 0 0 0 0 0 0
80,263 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8,263
0
Other
5.
services 0 0 0 0 0 0 105,781 0 0 0 0 0 0 0 0 0 0 0 0 0 1005,781
0000
O O O O
OOOO
oooo
Commodities
Agriculture
6. 244 72,697
0 97 0 0 0 0 0 0 0 0 0 0 616 629 0 0 0 0 0 2,964 0-7,223
30
Industry
7. 3,619
3,075
5,859
165
1,145 0 0 0 0 0 0 0 0 7,256
0
5,236 0 310 0 0 02,513
32,083
-494
3,399
Transportation
8. 183
176
29
38 282 0 0 0 0 986
1,689
3,444 0 0 0605 662 0169 0 0 0 08,263
services
Other
9. 30
715
281 421
1,685 0 0 0 0 0 0 0 0 0 0 1,913 2,561 40,295 0 0 12,784
0,5986,283
costs
Transaction
10.
sales
Domestic 0 0 0 0 0 2,788 0
657 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 30,444
Import
11. s 0 0 0 0 0
9 1,680 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10,689
Exports
12. 0 0 0 580
0 406 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 90086
Factors
13.
Labor 2,447
2,936
684
755
6,028
0 0 0 0 0 0 0 0 0 0 0 0 0 0 012,851
Capital
14. 1,950
5,386
260
1,719 3,524 0 0 0 0 0 0 0 0 0 0 0 0 0 012,839
ос
Land
15. 458
0
137 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0594
000
000
000
000
Households
16.
Rural 0 0 0 0 0 0 0 0 0 0 011,979
594
,605 0 1,113
5,526 0
259 0 0 102 0 011,179
Urban
17. 0 0 0 0 0 0 0 0 0 0 0 011,220 0
127 0
3346
,306 0 0 0 0 0 104,998
institutions
Other
Enterprise
18. 0 0 0 0 0 0 0 0 0 0 0 0 100,7330 0 0 01,209 0 0 0 0 011,942
19.
Government 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 03,727 1,861
1,478 291 0 70,357
Direct
20.
taxes 0 0 0 0 0 0 0 0 0 0 0 0 0 0 709 1,351
1,667 0 0 0 0 0 0 30,727
taxes
Indirect
21. 176 43 188
524 0546 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10,478
tariffs
Import
22. 0 0 0 0 10 1,800 051 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1,861
23.
world
of
Rest 0 0 0 0 0 48 7,550 0 450 0 0 0 26 0 0 0 535 418 0 0 0 0 0 90,027
I24.
Savings
-nvestment 0 0 0 0 0 0 0 0 0 0 00 1,415 2,280 908
-504 0 0 10,559 0 0 5,658
25.
Stock
change 0 0 0 0 0 0 0 0 0 0 0 00 0 0 -525
0 -525
Total -525
5,658
9,027
1,861
1,478
3,727
7,357
11,942
14,998
11,179
594
12,839
12,851
986
1,689
3,444
16,283
32,083
7,223
15,781
8,263
17,859
1,355
5,250 0
:T999
Source
(1
Bautista
).and
homas
dollars
presented
Zambian
million
in
Note
. ata
:D
are
7
9The distinction between intermediate use of transportation services and their use
in output marketing (giving rise to transaction costs) is that intermediate input use
is part of the production process whereas use in marketing is incurred only if the
output is actually marketed (as opposed to being home-consumed). Input-output ta-
bles typically include information on marketing margins but in a less (or differently)
disaggregated format than that proposed for the standard model SAM. Hence, addi-
tional data and analysis may be needed if the model user wishes to construct a SAM
with the proposed treatment of marketing margins.
10In the model, home consumption demand is for the commodity output(s) of the ac-
tivities that, in the SAM, receive payments from households (compare with footnote
7 and equations 18 and 34 in Chapter 4).
3. OVERVIEW OF THE STANDARD
CGE MODEL
The standard CGE model explains all of the payments recorded in the
SAM. The model therefore follows the SAM disaggregation of factors, ac-
tivities, commodities, and institutions. It is written as a set of simultane-
ous equations, many of which are nonlinear. There is no objective func-
tion. The equations define the behavior of the different actors. In part,
this behavior follows simple rules captured by fixed coefficients (for ex-
ample, ad valorem tax rates). For production and consumption decisions,
behavior is captured by nonlinear, first-order optimality conditions—that
is, production and consumption decisions are driven by the maximization
of profits and utility, respectively. The equations also include a set of con-
straints that have to be satisfied by the system as a whole but are not nec-
essarily considered by any individual actor. These constraints cover mar-
kets (for factors and commodities) and macroeconomic aggregates (bal-
ances for Savings–Investment, the government, and the current account
of the rest of the world).
This chapter summarizes the basic characteristics of the model. Un-
like the more detailed presentation in Chapter 4, it uses no mathematical
notation.
8
9
Commodity outputs
(fixed yield coefficients)
Activity level
(CES/Leontief function)
Value-added Intermediate
(CES function) (Leontief function)
Primary Composite
factors commodities
Imported Domestic
economywide wage are fixed while the activity-specific wage terms and the
supply variables are flexible.
11In the standard SAM, home consumption is only disaggregated by activity and
household, not by commodity, activity, and household. When households consume
from activities that produce multiple outputs, extraneous, non-SAM data are needed
to allocate home consumption across the commodities produced by each relevant
multiple-output activity.
11
12This function is also referred to as an Armington function, named after Paul Arm-
ington who introduced imperfect substitutability between imports and domestic
commodities in economic models (Armington 1969).
commodities
marketed
F
of
Figure
-lows
2
12
Commodity
outpu
from t Aggregate
1activity exports
QXAC
( PE
Q
(
) E
PXAC
)
Aggregate
CES CET
output
P
|) X
Q
(
Commodity Household
Domestic
outpu
from t consumption
sales QQ
(
|P
) H
activity
n
P
|QDS-
( D
QXAC
( +
PDD
) Government
PXAC
)
Composite consumption
CES )|P
(QQ G
commodity
Q
( QPQ
) +
Investment
Qdst
(
q
|+ INV
Aggregate PQ
)
imports +
Q
PM
) M
( Intermediate
use
| INT
)
Q
(
P Q
Note
: ES
;C
.substitution
transformation
of
elasticity
constant
isET
13
prices paid by domestic demanders also include import tariffs (at fixed ad
valorem rates) and the cost of a fixed quantity of transactions services per
import unit, covering the cost of moving the commodity from the border
to the demander.13 Similarly, the derived demand for domestic output is
met by domestic suppliers . The prices paid by the demanders include the
cost of transactions services, in this case reflecting that the commodity
was moved from the domestic supplier to the domestic demander. The
prices received by domestic suppliers are net of these transaction costs .
Flexible prices equilibrate demands and supplies of domestically marketed
domestic output.
Compared with the alternative assumptions of perfect substitutability
and transformability, the assumptions of imperfect transformability (be-
tween exports and domestic sales of domestic output) and imperfect sub-
stitutability (between imports and domestically sold domestic output)
Constraint
GOV-3: SI-3:
Fixed government savings; Flexible capital formation ;
scaled direct tax rates for fixed MPS for all non
selected institutions government institutions
SI-4 :
Fixed investment and gov-
ernment consumption ab-
sorption shares (flexible
quantities) ; uniform MPS
point change for selected
institutions
SI-5 :
Fixed investment and gov-
ernment consumption ab-
sorption shares (flexible
quantities) ; scaled MPS for
selected institutions
Notes: For the specified closure rules, the choice for one of the three constraints does not
constrain the choice for the other two. MPS is marginal propensity to save.
13Note that these transaction costs are not ad valorem. The rates the ratio between
the margin and the price without the margin—change with changes in the prices of
transactions services and/or the commodities that are marketed.
14
permit the model to better reflect the empirical realities of most countries.
The assumptions used give the domestic price system a degree of inde-
pendence from international prices and prevent unrealistic export and im-
port responses to economic shocks. At the disaggregated commodity level,
these assumptions allow for a continuum of tradability and two-way trade,
which is commonly observed even at very fine levels of disaggregation.
MACROECONOMIC The CGE model includes three macroeconomic balances: the (current)
balance, the external balance (the current account of the bal-
BALANCES government
of
ance payments, which includes the trade balance), and the Savings–
Investment balance. In the GAMS code, the user chooses among a rela-
tively large number of pre-programmed alternative closure rules for these
balances. The choices made have no influence on the solution to the base
simulation but will typically influence the results for other simulations.
The closures are summarized in Table 3.14
For the government balance, the default closure (GOV-1) is that gov-
ernment savings (the difference between current government revenues
and current government expenditures) is a flexible residual while all tax
rates are fixed. Under the two alternative government closures, the direct
tax rates of domestic institutions (households and enterprises) are ad-
justed endogenously to generate a fixed level of government savings. For
the first of these alternative closures (GOV-2), the base-year direct tax
rates of selected domestic nongovernment institutions (households and
enterprises) are adjusted endogenously by the same number of percentage
points. For the second (GOV-3), the rates of selected institutions are mul-
tiplied by a flexible scalar.15 For these three government closures, govern-
ment consumption is fixed, either in real terms or as a share of nominal
absorption, depending on the treatment of the Savings–Investment bal-
ance, discussed below. In other words, we do not specify a closure where
government savings and direct tax rates are both fixed and government
consumption is the adjusting variable.
For the external balance, which is expressed in foreign currency, the
default closure (ROW-1) is that the real exchange rate is flexible while for-
eign savings (the current account deficit) is fixed. Given that all other
items are fixed in the external balance (transfers between the rest of the
world and domestic institutions), the trade balance is also fixed. If, ceteris
paribus, foreign savings are below the exogenous level, a depreciation of
14Macroclosure of CGE models is a contentious topic with a large literature. For sum-
maries, see Robinson (1991), Rattsø (1982), and Taylor (1990).
15The difference between these two closures in terms of simulated changes in post-
tax incomes may be substantial, as illustrated by an example with two institutions—
an enterprise and a household that each, under base conditions, have incomes of 200
and face direct tax rates of 20 percent and 10 percent, respectively. Assume that total
direct tax collection has to increase from 60 to 90 to reach a fixed level of govern-
ment savings (assuming, for simplicity, no income changes). Under the first closure,
the rates would increase by 7.5 percentage points for both entities, to 27.5 percent
for the enterprise and 17.5 percent for the household. The payments would increase
by 15 percentage points for both. Under the second closure, the new tax rates would
be 30 percent and 15 percent (multiplying both base rates by 1.5), respectively. The
tax payments increase by 20 percentage points for the enterprise and 10 percentage
points for the household.
15
18
A closure of this type was used in the first CGE model, developed by Leif Johansen
(1960).
17
is fixed; and (ii) for one labor type, introduce a modified version of the de-
fault factor-market closure where not only the wage variable, WF, but also
the labor supply variable, QFS, is flexible.
Finally, it is often informative to explore the impact of experiments
under a set of alternative macroclosures. The results provide important
insights into the real-world tradeoffs that are associated with alternative
macroeconomic adjustment patterns.
4. MATHEMATICAL MODEL
STATEMENT
Item Notation
Notes: For the specified closure rules, the choice for one of the three constraints does not
constrain the choice for the other two . MPS is marginal propensity to save.
PRICE BLOCK The price system of the model is rich , primarily because of the assumed
quality differences among commodities of different origins and destina-
tions (exports , imports, and domestic outputs used domestically) . The
price block consists of equations in which endogenous model prices are
linked to other prices ( endogenous or exogenous) and to nonprice model
variables .
18
19
where
CEC = a set of commodities (also referred to as c ' and C ') ,
CЄ CM (CC) = a set of imported commodities,
с ∈СТ (с С) = a set of domestic trade inputs (distribution commodi-
ties) ,
PM = import price in LCU (local- currency units) including
transaction costs ,
pwmc = c.i.f. import price in FCU (foreign- currency units) ,
tmc = import tariff rate ,
EXR = exchange rate (LCU per FCU) ,
||||
=
PW composite commodity price (including sales tax and
transaction costs) , and
icmec = quantity of commodity c' as trade input per imported
unit of c .
The import price in LCU (local-currency units) is the price paid by do-
mestic users for imported commodities (exclusive of the sales tax) . Equa-
tion ( 1 ) states that it is a transformation of the world price of these im-
ports , considering the exchange rate and import tariffs plus transaction
costs (the cost of trade inputs needed to move the commodity from the
border to the demander) per unit of the import. For all commodities, the
market price paid by domestic commodity demanders is the composite
price, PQ ; in this equation , PQ applies only to payments for trade inputs .
The domain of the equation is the set of imported commodities (a subset
of the commodity set) . The model includes one equation like (1 ) for every
imported commodity.
Note that the notational principles make it possible to distinguish be-
tween variables (upper-case Latin letters) and parameters (lower- case
Latin letters) . This means that the exchange rate and the domestic import
price are flexible, while the tariff rate and the world import price are fixed .
The fixedness of the world import price stems from the " small- country"
assumption . That is , for all its imports, the assumed share of world trade
for the modeled country is so small that it faces an infinitely elastic sup-
ply curve at the prevailing world price.
where
CECE (CC) = a set of exported commodities (with domestic produc-
tion) ,
PE = export price (LCU) ,
pwee = f.o.b. export price (FCU) ,
te = export tax rate,
ice c = quantity of commodity c ' as trade input per exported
unit of c .
2020
where
CECD (CC) = a set of commodities with domestic sales of domestic
output,
PDD = demand price for commodity produced and sold domes-
tically,
PDS = supply price for commodity produced and sold domesti-
cally, and
icdec = quantity of commodity c ' as trade input per unit of c
produced and sold domestically.
The model includes distinct prices for domestic output that is used do-
mestically. In the presence of transaction costs, it is necessary to distin-
guish between prices paid by demanders and those received by suppliers.
Equation (3 ) defines the demand prices as the supply price plus the cost of
trade inputs per unit of domestic sales of the commodity in question.
absorption
domestic demand price import price CE (CDCM) (4)
(at demand times + times
prices net of domestic sales quantity import quantity
sales tax)
where
QQc = quantity of goods supplied to domestic market (com-
posite supply) ,
QDc = quantity sold domestically of domestic output,
QM = quantity of imports of commodity, and
tqe = rate of sales tax (as share of composite price inclusive
of sales tax) .
19The model does not include any commodities that are imported for immediate re-
export. As long as such trade uses domestic factors (and, possibly, intermediate in-
puts) , it can be handled without any changes in model structure by including an ac-
tivity in the SAM that imports a nonproduced commodity and exports all of its
output.
21
where
PX = aggregate producer price for commodity,
QXc = aggregate marketed quantity of domestic output of
commodity,
QEc = quantity of exports, and
CECX (CC) = a set of commodities with domestic output .
where
αεΑ = a set of activities ,
PA = activity price (gross revenue per activity unit) ,
РХАСа с = producer price of commodity c for activity a , and
Ѳа с = yield of output c per unit of activity a.
The gross revenue per activity unit, the activity price, is the return
from selling the output or outputs of the activity, defined as yields per ac-
tivity unit multiplied by activity- specific commodity prices, summed over
all commodities. This allows for the fact that activities may produce mul-
tiple commodities .
where
PINTA = aggregate intermediate input price for activity a , and
icac a = quantity of c per unit of aggregate intermediate input
α.
where
taa = tax rate for activity,
QA = quantity (level) of activity,
QVAa = quantity of (aggregate) value-added ,
||||||
For each activity, total revenue net of taxes is fully exhausted by pay-
ments for value-added and intermediate inputs. Given the above defini-
tions of PA and PINTA, equation ( 8 ) implicitly defines the value-added
price, PVA.
where
cwts = weight of commodity c in the consumer price index, and
CPI consumer price index (exogenous variable) .
where
dwtse = weight of commodity c in the producer price index, and
DPI = producer price index for domestically marketed output .
Equations (9) and ( 10) define the consumer price index and the pro-
ducer price index for domestically marketed output. The CPI is fixed and
functions as the numéraire in the basic model version ; alternatively, the
DPI may be fixed . A numéraire is required since the model is homoge-
neous of degree zero in prices-a doubling of the value of the numéraire
would double all prices but leave all real quantities unchanged . All simu-
lated price and income changes should be interpreted as changes vis -à-vis
the numéraire price index.
The production and trade block covers four categories: domestic produc-
PRODUCTION AND tion and input use; the allocation of domestic output to home consump-
TRADE BLOCK tion , the domestic market , and exports ; the aggregation of supply to the
domestic market (from imports and domestic output sold domestically ) ;
and the definition of the demand for trade inputs that is generated by the
distribution process .
1
α
-Pa pa
CES Technology : · ·
Q4, = œ“ · (8 a%; · QVA¸¯
а "² + (1–82 ) · QINTA
,~ P " ) »
Activity Production a = ACES ( 11 )
Fucntion activity quantity ofaggregate value added,
level
my] = CES[ quantity of aggregate intermediate input
1
QVAa PINTAa δα
a 1+pa
CES Technology:
Value-Added- QINTA PVA 1-8a
a
Intermediate - Input
Ratio value-added
intermediate-input : a = ACES ( 12)
intermediate- =
f value-added
input quantity price ratio
ratio
where
a ЄACES(CA) = a set of activities with a CES function at the top of the
technology nest ,
aa = efficiency parameter in the CES activity function,
δα = CES activity function share parameter, and
pa
α = CES activity function exponent .
The user specifies the activities , if any, that belong to the set ACES. If
not in ACES, an activity belongs to the set ALEO, which is introduced
below. Activities in ACES have CES technology at the top level of the
technology nest . In other words, the activity level is a CES function of
value- added and aggregate intermediate input use (equation 11) . The op-
timal mix of intermediate inputs and value-added is a function of the rel-
ative prices of value -added and the aggregate intermediate input
(equation 12 ) .22 Below, in equation ( 18) , the activity level determines the
quantity of commodity outputs produced by each activity. The exponent ,
21For the alternative with CES technology at the top of the technology nest, the
profit-maximization problem, which applies to each relevant activity, a, is as follows :
( 11) , (15) , and (17); equations ( 7) , (8) , ( 11 ) , ( 12) , ( 15 ) , ( 16) , and (17) are the first-
order conditions. For the alternative with Leontief technology at the top , the profit-
maximization problem includes equations ( 13) and (14) among its constraints but
excludes equation 11 ; the Leontief first-order conditions include equations ( 13) and
(14) instead of equations (11) and (12). In both optimization problems, all quantities
are variables whereas the decisionmakers view all other items as parameters or ex-
ogenous variables (including all prices and wages).
221
In general, when writing nonlinear equations to be solved numerically, it is good
practice to avoid division by a variable that the solver treats as possibly going to zero.
Accordingly, in the GAMS version of equation ( 12) , QINTA was moved to the right-
hand side . Parallel adjustments were made in equations (22) and (25) .
25
Leontief
QINTA = intaa QAa a = ALEO ( 14 )
Technology:
Demand for demandfor aggregate activity
Aggregate
intermediate input ·] = [ level
Intermediate Input
where
a ЄALEO(CA) = a set of activities with a Leontief function at the top of
the technology nest,
ivaa = quantity of value- added per activity unit, and
intaa = quantity of aggregate intermediate input per activity
unit.
For the alternative model version with a Leontief function at the top
of the technology nest , equations ( 11) and ( 12) are replaced by equations
( 13) and ( 14 ) where the demands for value- added and the aggregate inter-
mediate inputs are defined as Leontief functions of the activity level. Each
activity is an element in either ACES or ALEO, but not both .
1
va
να
-Pa a ЄA (15)
Value-Added and QVA = avaΣ8ya
a 8fa QFfa J
Factor Demands feF
va va
Factor Demand WF, WFDIST
f a = PVAа ( 1 − tva ) · QVAΣ8f a · QF Pa
ƒЄF'
va αε Α
ναa ·QFƒ a"Pa"-1 (16 )
•Έ
87fa fa fe F
1
23For CES functions, σ = 2 where is the elasticity of substitution and the ex-
1 +ρ
ponent.
26
where
f =F(= F') = a set of factors,
tvaa = rate of value-added tax for activity a,
ava = efficiency parameter in the CES value-added function ,
Seca
α = CES value-added function
share parameter for factor f
in activity a,
QFfa = quantity demanded of factor f from activity a,
να = CES value-added function exponent,
pva
WFf = average price of factor, and
WFDIS fa = wage distortion factor for factor f in activity a (exoge-
T
nous variable) .
Equation ( 15) states that , for each activity, the quantity of value-added
is a CES function of disaggregated factor quantities . According to equa-
tion (16) , activities demand factors at the point where the marginal cost of
each factor (defined on the left-hand side as the activity- specific factor
price) is equal to the marginal revenue product (net of intermediate input
costs) of the factor. In the GAMS code , the domain of equation (16) is lim-
ited to the factor-activity combinations that appear in the base-year SAM .
Similar domain restrictions apply to other equations that are defined over
mappings between multiple indices (for example, equation 17) . The expo-
να
nent, pa, is a transformation of the elasticity of factor substitution : the
να
higher this elasticity, the smaller the value of pa and the larger the opti-
mal change in the ratios between different factor quantities in response to
changes in relative factor prices (compare with footnote 16) .
The fact that the average factor price is an endogenous variable while
the activity-specific “wage-distortion " factor is exogenous reflects the
treatment of factor markets in the basic model version (see equation 39
below).
where
QINTca = quantity of commodity c as intermediate input to activ-
ity a.
Commodity QXACac
ас + QHAach = 0acс Q¹a
Production and hЄH
Allocation household home αεΑ
marketed quantity production (18)
consumption = of commodityc се СХ
of commodity c
of commodity c
from activity a from activitya
from activitya
27
where
QXACac = marketed output quantity of commodity c from activity
a, and
QHAach = quantity of household home consumption of commodity
c from activity a for household h .
1
ас paасc-1
-pac
Output Aggregation QX =0ac8ac
Σδα · QXACac
Function аєА
CE CX ( 19)
aggregate activity-specific
marketed == CES marketed
production of production of
commodity c commodity c
where
aac = shift parameter for domestic commodity aggregation
function ,
бас
ac = share parameter for domestic commodity aggregation
function, and
ac
ρε = domestic commodity aggregation function exponent .
24In the SAM , home consumption is represented by payments from households to ac-
tivities. For the case of home consumption out of activities with multiple outputs, it
is necessary to complement the information in the SAM with data on the allocation
of consumption across the different activity outputs.
28
1
—
Output QX = α · (8 · QEº¹ + (1 − 8′) · QDº¹ ) ž
Transformation
(CET) Function CE (CE CD) (21)
aggregate marketed == CET export quantity, domestic
domestic output sales of domestic output
where
at = a CET function shift parameter,
St = a CET function share parameter, and
= a CET function exponent .
ρ
1
ОЕ PE 1-8- 1
C
Export- Domestic
Supply Ratio QD PDS c St
CE (CE CD) (22)
export-domestic = export-domestic
supply ratio f price ratio
1
25For CET functions, N = where is the elasticity of transformation and p the
1 + p
exponent. As Q varies from zero to infinity, the value of pέс varies from infinity to one .
In equation (22) , as ptc approaches one from above, the elasticity of the QE-QD ratio
with respect to changes in the PE-PDD ratio increases.
29
Equation (22 ) defines the optimal mix between exports and domestic
sales . Equations ( 5) , ( 21 ) , and (22) constitute the first-order conditions for
maximization of producer revenues given the two prices and subject to the
CET function and a fixed quantity of domestic output . Note that equation
(22) assures that an increase in the export- domestic price ratio generates
an increase in the export-domestic supply ratio (that is, a shift toward the
destination that offers the higher return).
Output QX = QD + QE
Transformation for cЄ (CD CEN) ~ (CE ~ CDN) (23)
Domestically Sold
domestic market
Outputs Without aggregate
marketed = sales of domestic + exports [for
Exports and for domestic output output [for CE (CE CDN)]
Exports Without cЄ (CD CEN)]
Domestic Sales
where
CЄCEN (CC) = non-exported commodities (complement of CE) , and
CE CDN (CC) commodities without domestic market sales of domes-
tic output (complement of CD ) .
1
-pa
Composite Supply 20¸ = œ¶ · (8ª · QM²²² + (1−8ª ) · QD´? ² ) På
CE (CM CD) (24)
(Armington)
Function composite import quantity, domestic
-
f use of domestic output
supply
where
а = an Armington function shift parameter,
Sa = an Armington function share parameter, and
Pe = an Armington function exponent .
1
Import-Domestic QM PDD ба 1+pa
CE (CM CD) (25)
Demand Ratio QDc PMc 1-89
import-domestic domestic-import
demand ratio price ratio
] =/ [
30
Equation (25) defines the optimal mix between imports and domestic
output. Its domain is thus limited to imports with domestic production .
Note that the equation assures that an increase in the domestic-import
price ratio generates an increase in the import- domestic demand ratio
(that is, a shift away from the source that becomes more expensive) .26 To-
gether, equations ( 4 ) , ( 24) , and (25) constitute the first- order conditions
for cost-minimization given the two prices and subject to the Armington
function and a fixed quantity of the composite commodity.
Composite Supply QQ = QD + QM
for Non-imported
CE (CD CMN) (CM CDN) (26)
Outputs and Non-
produced Imports domestic use of
composite = marketed domestic imports [for
supply output [for CE (CMCDN)]
CE (CD CMN)]
where
CE CMN (CC) = a set of non-imported commodities.
=
Demand for QT Σ (icm QM + ice c' · QE + icd c' · QDc ')
Transactions c'e C'
Services demandfor sum ofdemands с∈СТ (27)
transactions for imports, exports,
services and domestic sales
where
QTc = quantity of commodity demanded as transactions serv-
ice input .
Total demand for trade inputs is the sum of the demands for these in-
puts that are generated by imports (from moving commodities from the
border to domestic demanders), exports (from moving commodities from
domestic producers to the border) , and domestic market sales (from mov-
ing commodities from domestic producers to domestic demanders) . In all
three cases, fixed quantities of one or more transactions service inputs are
required per unit of the traded commodity.
26See footnote 16 for the definition of the elasticity of substitution . In equation (25) ,
as the value of på approaches minus one from above, the elasticity of the import-
domestic demand ratio with respect to changes in the PDD-PM ratio increases .
31
INSTITUTION
BLOCK
where
YFf = income of factor f.
where
i Є INS = a set of institutions (domestic and rest of the world) ,
i =INSD(ĊINS) = a set of domestic institutions,
YIF i f = income to domestic institution i from factor f,
shifif = share of domestic institution i in income of factor f,
tff = direct tax rate for factor f, and
trnsfri f = transfer from factor f to institution i .
where
i ЄINSDNG(=INSDNG' - INSD)
= a set of domestic nongovernment institutions,
YI = income of institution i (in the set INSDNG ) , and
TRII = transfers from institution i' to i (both in the set INS-
DNG).
Σ shift.f = 1 .
27To assure that the total factor income is distributed, it is necessary thatieINSD
32
where
shiiii = share of net income of i ' to i (i’ĒINSDNG'; iĒINS-
DNG),
MPS; = marginal propensity to save for domestic nongovern-
ment institution (exogenous variable), and
TINS; = direct tax rate for institution i (i ЄINSDNG) .
Household EH shii¡ n
Σ -MPS ) (1 - TINS ) ·YI
Consumption iЄ INSDNG
hЄH (32)
Expenditures household income household income, net ofdirect
disposablefor taxes, savings, and transfers to
consumption other non-government institutions
where
i e H(CINSDNG)
= a set of households , and
EH = household consumption expenditures .
28The fact that government transfers are indexed to the CPI makes the model homo-
geneous of degree zero in prices. This indexing influences the results when the DPI is
the model numéraire. If the CPI is the numéraire, it has no effect.
33
Household m
PQc · · QHch = PQc •· Y" h + Beth EH - PQ c'h - ΣΣ
Yon ΣPXACac Yach
Consumption c'e C аЄAc'εC
Spending on household consumption total household consumption CEC
Marketed spending on market f spending, marketprice ofc, and other (33)
hЄH
Commodities commodity c commodityprices (market and home)
where
QHch = quantity of consumption of marketed commodity c for
household h ,
m
Y'ch = subsistence consumption of marketed commodity c for
household h ,
yhac
h = subsistence consumption of home commodity c from ac-
tivity a for household h , and
m
Bc = marginal share of consumption spending on marketed
h
commodity c for household h.
where
Bhch = marginal share of consumption spending on home com-
modity c from activity a for household h.
where
QINV = quantity of fixed investment demand for commodity,
where
QGc = government consumption demand for
commodity,
GADJ = government consumption adjustment factor
(exogenous variable) , and
Government YG = · ·
ΣTINS · YI + Σff YF + Σ ινα PVA · QVA
Σtva
Revenue iЄ INSDNG fe F αε Α
.
+ Σtaa · PAa ' QA + Σtm pwmс QM с EXR + Σte pwe · QE · EXR
αε Α се СМ CE CE
sales transfers
+ factor + from
tax income
ROW
where
YG = government revenue.
35
where
EG = government expenditures.
SYSTEM
CONSTRAINT
BLOCK
where
Activity-specific wages, WF, WFDISTfa , vary to assure that the fixed ac-
tivity-specific employment level, QFfa , is consistent with profit-maxi-
mization (compare with equation 16) . Also for this formulation, the en-
dogenous aggregate factor supply variable merely records the total em-
ployment level .
CEC (40)
composite = intermediate household government
+
supply use consumption consumption
where
where
FSAV = foreign savings (FCU) (exogenous variable) .
Government YG = EG + GSAV
Balance
government government government
(42)
revenue ] =[expenditures savings
where
GSAV = government savings .
Direct Institutional
TINS₁ = tins; · ( 1 + TINSADJ · tins01 , ) + DTINS · t.
Tax Rates
direct tax base rate adjusted point change i = INSDNG (43)
=
ratefor for scalingfor + for selected
institution i selected institutions institutions
where
Notice that when GSAV is fixed for the two alternative closure rules ,
another variable is made endogenous, thus maintaining a model with an
equal number of variables and equations . The choice between alternative
closure rules should depend on the empirical context . For example, if the
government pursues a policy of raising effective direct tax rates to main-
tain fixed savings in a setting with reduced other revenues and/or in-
creased government spending, will it raise rates for all or only a subset of
the nongovernment institutions? For the targeted institutions , will the
government aim at uniform point increases or will it raise rates in pro-
portion to current rates?
.
Institutional MPS₁ = mps , · ( 1 + MPSADJ · mps01, ) + DMPS · mps01 ,
Savings Rates
savings base rate adjusted pointchange i ЄINSDNG (44)
ratefor = forscalingfor + for selected
institution i selected institutions institutions
where
Equation (45 ) states that total savings and total investment have to be
equal . Total savings is the sum of savings from domestic nongovernment
institutions, the government, and the rest of the world, with the last item
converted into domestic currency. Total investment is the sum of the val-
ues of fixed investment (gross fixed capital formation) and stock changes.
39
In the basic model version, the flexible variable, DMPS, performs the
task of clearing this balance (compare with equation 44) . None of the
other items in the Savings-Investment balance is free to vary to assure
that the balance holds. Given that the balancing role is performed by the
savings side , this closure represents a case of "investment-driven" sav-
ings . In the GAMS code, additional Savings-Investment closures have also
been programmed . Under closure 2 (see Table 3) , DMPS is fixed and
MPSADJ is flexible. For closure 3, in which investment is savings- driven,
IADJ is flexible whereas both MPSADJ and DMPS are fixed .
Up to this point, the model as stated is not square ; the number of
equations exceeds the number of variables by one. However, the model sat-
isfies Walras' law: one equation is functionally dependent on the others
and can be dropped . The Savings-Investment balance or the current-
account balance is commonly eliminated . ) After eliminating one equation ,
the model is square and , in the absence of errors in formulation , a unique
solution typically exists . Instead of dropping one equation , it is also possi-
ble to add one variable to the macroeconomic balance equations . The so-
lution value of this variable should be zero. If not, one or more equations
are not satisfied and a general equilibrium solution has not been found .
This is the approach followed in the GAMS version of the model . A vari-
able called WALRAS is added to the Savings-Investment balance . No
equation is dropped.
After this adjustment, the model presented is complete and self-
contained. In the basic model version, three more equations (and three
new variables that appear in them) are added . The reason for including
these is that they permit the formulation of the “balanced " Savings-In-
vestment closures 4 and 5. We will return to the closure issue later, after
presenting the new equations and their notation .
household household
total = government + fixed stock
market home
absorption consumption investment change
consumption consumption
where
TABS = total nominal absorption .
where
INVSHR = investment share in nominal absorption .
The right-hand side of this equation defines the total investment value
(compare with equation 45) . On the left-hand side, total absorption is mul-
tiplied by a new free variable, INVSHR. At equilibrium, this variable
measures the ratio between investment and absorption.
where
GOVSHR = government consumption share in nominal absorption
.
29However, for simulations with single-period models (like the current model) aimed at
exploring welfare impacts of exogenous shocks, the Savings–Investment closure 1 or 2
is often preferable since the model is unable to capture future welfare changes associ-
ated with current changes in investment (compare with the Macroeconomic Balances
discussion in Chapter 3).
5. THE STANDARD MODEL IN GAMS
The GAMS input files contained in the CD-ROM that accompanies this
manual include country data files that enable the user to conduct simula-
tions with the standard model using data for a selected country. It is also
straightforward to apply this modeling system to alternative country data
sets generated by the user. This chapter provides a brief guide to the
GAMS files and suggestions on how to use this modeling system. The files
themselves include additional explanatory comments.
Table 5 summarizes the contents of the different files and Figure 3
provides a schematic representation of the structure of the GAMS model
and data files.30 The modeling system is segmented into two main files,
mod.gms and sim.gms. This segmentation corresponds to the two main
steps in a typical CGE modeling project. In the first main file, mod.gms,
the model, which is identical to that detailed in Chapter 4, is set up and
calibrated to a country data set that is read in the form of an “include” file
(<name>.dat). The sample data sets illustrate how data sets should be de-
fined.31 The SAMs may be included directly in the <name>.dat file or be
read into this file using GAMS GDX file command that comes with recent
GAMS release (or via a link to a spreadsheet using the program XLLINK,
which has to be installed separately for older releases of GAMS. The for-
mer approach—direct inclusion of the SAM and the rest of the data—is
often preferable because it is less error-prone, and it facilitates model doc-
umentation and transportability between different users and computers.
If the account imbalances in the SAM exceed a low cutoff point, a simple
SAM balancing program in the file sambal.inc is activated. The file
varinit.inc is used to initialize all variables at base levels. In the optional
30The CD-ROM also includes an example file for a SAM aggregation program (sam-
agg.gms). It may be used independently of the other GAMS files, in which case the ap-
propriately aggregated SAM should be inserted in the country data file. Alternatively,
after some adjustments, samagg.gms may be used as an include file in the country data
set, immediately before the inclusion of sambal.inc. If so, the set AC in the country
data file should be expanded to include all SAM accounts (both of the initial SAM and
the aggregated SAM). The rest of the sets should be defined on the basis of the ac-
counts in the aggregated SAM.
31Three sample data sets are included: test.dat, which is based on data from Mozam-
bique, and is designed to test many of the model features; swazilan.dat, which includes
macrodata for Swaziland that has only one element in each account set; and zim-
babwe.dat, a Zimbabwe data set. When applied to test.dat or swazilan.dat, the stan-
dard model can be solved using the student version of GAMS; the Zimbabwe data set
is larger and requires a full version of GAMS (including solvers for NLP and MCP
problems). Data sets for a number of other countries are also available.
42
43
aThese parameters have the same name as the corresponding variable with X
added at the end.
bThese parameters have the same name as the corresponding parameter in re-
ploop.inc with P added at the end.
44
file varlow.inc, lower limits close to zero are imposed for selected variables
as this may improve solver performance.
Two models are defined inside mod.gms, one for MCP (mixed-
complementarity programming) and one for NLP (nonlinear program-
ming) solvers.32 The MCP model is identical to the model presented above.
The NLP model differs in that it also includes an objective function. The
objective function is needed given that this is an optimization problem,
but it has no influence on the solution since there is only one feasible so-
lution that satisfies all constraints. After having solved the model for the
base, the program calls up the file repbase.inc, which generates a report on
the base solution.
In sim.gms, which restarts from the save files of mod.gms, simulations
are defined and carried out.33 A note at the beginning of the file specifies
the steps required when additional simulations are introduced. For each
simulation, the user can choose between alternative closures for macro-
economic constraints (compare with Table 3) and factor markets (three al-
ternatives for each factor and simulation; see summary in Chapter 3). The
user has the option of selecting the base levels of the model variables as
the solver’s starting point for selected simulations (by including the file
varinit.inc); this may facilitate the solver’s task of finding a solution rela-
tive to the default, according to which it uses the variable levels from the
preceding model solution. Report parameters are declared in the include
file repsetup.inc and defined in the include files reploop.inc, repperc.inc,
and repsum.inc. The parameters are designed to contain most of the in-
formation that an analyst may be interested in; Table 5 provides details.
Repsum.inc may be used as a starting point for user-defined reports that
highlight information of interest in a specific application.
mod.gms sim.gms
34The modeling system includes consistency checks on the report parameters that will
generate error messages if, for example, the reports show imbalances between the in-
come and spending of SAM accounts.
APPENDIX A: MATHEMATICAL SUMMARY
CGE MODEL
αεΑ activities
SETS
α ЄACES(CA) activities with a CES function at the top of the
technology nest
α ЄALEO(CA) activities with a Leontief function at the top of the
technology nest
CEC commodities
feF factors
i ЄINS institutions (domestic and rest of the world)
i Є INSD( INS) domestic institutions
i Є INSDNG
PARAMETERS
Latin Letters
cwtsc weight of commodity c in the CPI
dwtsc weight of commodity c in the producer price index
icaea quantity of c as intermediate input per unit of
activity a
icdec'
quantity of commodity c as trade input per unit of c '
produced and sold domestically
icecc' quantity of commodity c as trade input per exported
unit of c '
icme c'
quantity of commodity c as trade input per imported
unit of c '
intaa quantity of aggregate intermediate input per activity
unit
46
47
ivaɑ
quantity of value-added per activity unit
mps ; base savings rate for domestic institution i
mps01 0-1 parameter with 1 for institutions with potentially
flexed direct tax rates
I
O ac yield of output c per unit of activity a
α
a a a
pa CES production function exponent
va CES value-added function exponent
Ρα
ac
ρα domestic commodity aggregation function exponent
pa Armington function exponent
pć CET function exponent
Block
Price
price
Import pmXR
=
PM
1t
·(
E
)
P
c+
icm
wm
Q CM
CЄ )
(1
с •
c'e
CT
price
Export .E
t
p)
1-
PE XR-
(=ewe Σ
,Ρ
i
c Ω
ce CECE )
(2
с
CT
c'e
H
export tariff
export rate
exchange trade
of
cost
adjust-
=
price L CU
(per inputs
per
)(L CU
CU
Fment FCU
) unit
export
Demand
price
of PDS
=
PDD
P
Σ
+ Q
cicd CECD )
(3
domest
nontra
goods ic
ded CT
c'e
HE E
domestic EH domestic trade
of
cost
inputs
per
demand supply
unit
of
price price
sales
domestic
Absorption PQc
tqc
(1―
)·Q
P
=
·Q
P
+
Q
· Qc
DD
D
MM CE
CD
)
CM
( )
(4
absorption domestic
demand
price price
import
demand
a(t +
times times
of
net
prices domestic
sales
quantity import
quantity
sales
)
tax
Marketed
output
value · P
·Q
PX
=
QEX
+ DS
QDE CX
CЄ )
(5
producer
-| price domestic
Hsupply
price price
export
marketed
times
= times+ times
quantity
output domestic
sales
quantity quantity
export
price
Activity ·0
ac
P
=aXAC
PA₁Ѳа
с αεΑ )6
(
ac
C
CE
activity prices
producer
= times
price yields
interm ate
Aggregediate PINTA
i
·P
a Q
=cac αΕΑ )7
(
price
input C
CE
aggregate input
intermediate
cost
intermediate aggregate
of
unit
per
price
input intermedia
input te
Activity
revenue taa
(1-
PA₁
)Q
=
P
+
QVA
·QA₁
INTA
INTA
VA αεΑ )8
(
and
costs
price
activity value
-added aggregate
intermediate
)nof
taxes
(et = times
price times
price
input
level
activity
times quantity
quantity
index
price
Consumer )
(9
Dd3 = 1 CPI
P
cwts
=Q c
consumer times
prices
=
indeex
pric weights
Producer
for
index
price DPI
d PDS
Σwts
·= )(10
nontraded
market
output
CEC
] =[ ~ ;
index
price
producer timess
price
for
non
-traded
outputs weights
51
Production
and
52
Trade
Block
1
œINTA¸¯På
=
QA₁
8
1
(
+
)|·Q VA¸¯På
ª
−8ª Pa
α
technology
A:CES
ctivity A
Є
a CES )(11
function
production act added
value
aggregate
,of
CEiviSty quantity
level input
intermediate
aggregate
of
quantity
1
QVA 8apa
a1+
PINTA
a
a
-:V dded
alue
technology
CES QINTA
a PVA 1-8a Є
a ACES 1
() 2
interm
-input ediate a
quanti
ratio ty
value
--added
intermedia
i- nput te
intermediate-
f
= -avalue
dded
input
quantity
ratio
price
ratio
QVA
ivaa
=
QAa
Leontief
:technology Є
a ALEO )(13
Demand
for
aggregate for
demand
activity
f
value
-a dded =
value
added level
QINTA
Q
·i
=nta
Aa
Leonti
techno
: ef
logy Є
a ALEO )(14
for
aggreg d
Demanate
interm deman
aggreg
for date activity
input ediate
intermediate
input level
]=ƒ [
3. O va
δ va25 QVA₁
% Fa
=
QFƒ
a 8a
-Pa
and
-a
Value
dded fa αεΑ )(15
factor
demands feF
CES
=
]
aggregate
of [
quantity factor
value
added inputs
· · · Q
Pa
QFfa
t
1-
)(
WFWva
,
P
a=
ƒ FDIST
VA
VA8 a· ·8
Q
%F 1- vaa
-p
Factor
demand f f αΕΑ )(16
feF
marginal
of
cost = product
revenue
marginal
factor
a
activity
fin activity
f
factor
in
aof
QINTca
Q
·i
=caca
INTA
intermediate
Disaggregated αεΑ )(17
demand
input CEC
intermediate
demand diate
intermeate
aggreg
commodity
cfor input
quantity
a
activity
from a
activity
for
QXACac
Q0 HAach
+ac
'= Aa
Commodity
production hЄ
H αεΑ )(18
and
allocation household
home С
є
аХ
marketed
quantit y production
commod
of consumption commodit
oc=f
c +ity y
c
commodity
of
afrom
activity activity
afrom
activity
afrom
1
1-
pac
ас α
QX
= ac8ac
QXACac
-Pc
function
aggregation
Output с CECX )(19
А
ає
aggregate -specific
activity
marketed CES marketed
of
production production
of
c
commodity c
commodity
PXACa
P
c·Q X
= Xc c -P
Q· XAC
Σ8ac ас P
-
Q
8
· XAC
· ac
condition
-o
First
for
rder ас c ac c Ε
αΑ )(20
'Α
αε
function
aggregation
output CECX
marginal
com-
of
cost of
product
revenue
marginal
activity
cfrom
amodity cfactivity
acommodity
rom
53
and
Production
54
Trade
Block
)(continued P· EDº¹
QX₁
·'Q
'
α
=
′)
(1-8
²+ EP
· · − ·
transformation
Output CE
(
Є
)
OCD
c )(21
f
)C ET
( unction omesti
quantit
market
export
, aggrega
dC
= ET ycedte
outpu
domesttic sales
domestic
of
output
1
QE 1- 1-
pc
P E
-domestic
Export
ratio
supply QD PDS.c (E
cЄ
C
(
) D )(22
-domestic
export
f - omestic
dexport
=
ratio
supply ratio
price
QDc
=
QX
Q
+ E
for
transformati
Output on CE
domestic
market
commodities
e
- xported
non aggregate domestic
sales f[ or C
)( EN
( D )(23
marketed
of + exports
domestic [ or
foutput (CE
CE )]
CDN
output
)](CD
ce CEN (CE
)UCDN
I
Q
)
8
1−)
·²²
%Q
QQ₁(
+
αD´¹²
= ¶
ºM² På
—
Composite
supply CD
)(
CM
CE )(24
)f
A rmington
( unction
composite
f , omestic
dquantity
import
=
supply domestic
of
use
output
QM 89
PDDc p1
+a
ratio
demand
- omestic
d
Import QDc 1
c -89
PM CD
)(
CM
CE )(25
d- omestic
import domestic
-import
demand =
ratio ratio
price
Q
+=
QDc
cQQc
M
for
Composite
supply CE
outputs
-i
non
mported C
( DCMN
) )(26
domestic
use
of
nonproduced
and
imports composite domestic
marketed imports
[for
+
supply = f[or
output CE
)](CM
CDN C
)( MCDN
(CD
CE )]
CMN
QDc
)
i
+
QE
QT
(
QMce
icdee
cmc
=
Demand
for CECT 2
() 7
'C
C'E
services
transactions
demand
for deman
of ds
sum
transactions imports
xports
e,for
services and
sales
domestic
Block
Institution YF₁
=
W W
·
a
Q FDIST
ƒ Fƒ
,
· F
f • feF
income
Factor )(28
А
ає
activity
of
sum
payments
income
of pecific
wages
sa-(ctivity
factor
f
)
levels
employment
times
shif¡
=
YIF₁
,'[(1−
t)·Y
,—rnsfr
fF ]
EXR
Institutional
factor
incomes f ·
row INSD
iЄ )(29
income
of share
income
of income
f
factor
of fЄF
institu
i= tion of
to
f
factor and
tax
nof
(et
f
factor
from i
institution )
RoW
to
transfer
Y
+Σ
=
YI₁
;ƒ IF Σ TRII TRII¿¿
t+rnsfr CP
+
tro Iri E
rnwsf · XR
Income
domestic
,of 'i gov INSDNG
iЄ )(30
F
fe i'e
'
INSDNG
nongovernme
institutions nt
transfers
transfers transfers
income
of factor
+ domestic
other
from +
= from from
institution
i income non
-government
government ROW
institutions
55
Block
Institution
56
)(continued
shii¡
¡=
TRII
M
¡—
T
)(1-
,·Y INS
PS
I
Intra
-institutional INSDNG
iЄ
H income
net
of
share income
institution
of
transfers '
INSDNG
i'Є )(31
transfer
from i'
institution
of and
savings
of
i',net
i'to
institution i
to direct
transfered taxes
EH = Σ
shi
, -1-
shia) M-
1-
)·(1
·Y
)
TINS
I
PS₁
consum old
Househption hЄH 3
() 2
IЄi NSDNG
expenditure
household
income , et
income
household
nof
direct
disposable
for taxes
,asavings
to
transfers
nd
consumption institutions
- overnment
non
gother
m PQ
P
=
h
QH
|E
”
B
+
Y
-
EHHQ Thôn
P
)
-
1"-
YQ
Σ
- EEPXAC
Vach
PXAC₂e
oh
ch ch c'h
Household
consumption C'E
C c'ЄС
A
аЄ CEC
demand
marketed
for consumpti
household on total
household
consumpti hЄH )(33
on
commodities market
on
spending price
of
other
nd
spending
c,amarket
commodit
c y home
and
)(market
prices
commodity
PXACa
QHA c PX
Ya AC
ac chB
+h EH₁
PQ
Σ
-
Yach
PXACac
-ΣΣ
Yen
. ach
Household
consumption C
c'e C
cA'Є
аЄ αεΑ
demand
home
for consumption
household
total CEC )(34
consumpti
householdon ,spending
commodities commodity
home
on
spending nd
price
a,other
producer hЄH
afrom
cactivity prices
(mhome
and
)arket
commodity
QINV
I
=
q ADJ
· inv
demand
Investment CE
CINV )(35
factor
adjustment
fixed
investment
demand
for times
base
-year
fixed
c
commodity
investment
QGGADJ
98c
Government CEC )(36
deman ption
consumd adjustment
factor
government
consumption times
demand
for government
ybase
- ear
c
commodity consumption
YG = f
+
YI
ΣTINS
tva
+PVA
,Q YF
VAa
·
Government
revenue IЄi NSDNG fe
F A
E 3
() 7
Σ
:p
Q
;E
p
+
EXR
QM
ΣAa
'·P
Σ we
XR
E
te
wm
taa
A
tm
Α
αε СМ
СЕ CE
E
Σ
+
•Q
P YIF
Q
· tq t+rnsfr ·EXR
f
gov row
gov
C
CE F
fe
]
-338
(
direct
taxes direct
taxes value-
government
= from from added
revenue institutions factors tax
======
transfers
import
activity export sales factor
f+rom
tax tariffs taxes tax income ROW
EG
•= P
t
+
QG
Σ rnsfr
Q C
· PI
Government
expenditures gov 3
)( 8
C
CE IЄi NSDNG
domestic
to
transfers
government government
spending g- overnment
non
consumption
institutions
System
Const
Blockraint ΣQFƒ
OF a=
Qf FS
market
Factor fЄF )(39
A
ає
dema
for nd supply
of
facto
f r= factor
f
57
System
58
Block
Constraint
)(continued
QQc
=
Σ
a QINTc +
Q
Q
+
Q INV
QHch
G
Σdst
q T
Composite
commodity Аає hЄ
H
markets +[
] CEC )(40
composite
• intermediate household governme
+ nt fixed + stock trade
supply use consumption consumption investment change input
use
Σ
+
QM
p
Σ trnsf
wm r ;+
Σ
·Q
pow
E
we
=rnsfr
rtrowƒ F
+ SAV
Current
balance
account CECM F
fe CE
CE INSD
iЄ )(41
world
for
the
of
rest
factor institutional
(in
currency
)foreign import t+
ransfers export foreign
= transfers
spending revenue savings
RoW
to RoW
from
YG
EGGSAV
=
balance
Government )(42
government +government government
revenue expenditures savings
=ins
TINS
T
;(1+
D
)+
,·t ins01
INSADJ
TINS
institutional
Direct
rates
tax INSDNG
iЄ 4
() 3
direct
tax adjusted
rate
base change
point
rate
for scaling+
for selected
for
iinstitution selected
institutions institutions
MPS₁
=ps01
,(1
MPSADJ
D
,)+
;·m ps
+
MPS
Institutional
savings
rates INSDNG
iЄ )(44
savings adjusted
rate
base change
point
rate
for = for
scaling+ selecte
for d
i
institution institutions
selected institutions
TI
1-
(
ΣMPS
)·Y
,G
E
=
FSAV
P
+
QINV
qdst
INS
SAV
XR
Q
Balance
Investment
-
Savings INSDNG
iЄ C 4
)( 5
CEC CE
-gnon
overn- government
+ foreign fixed + stock
savings
ment savings savings investment change
=
TABS ΣΣ
,Η
ΡΩ QHch
P
=Q Σ
Ρ
Σ
+
PXACaOHAach
QGΩΣΣ
absorp
Total tion hЄ
cC
HЄ He
cChe
A
aЄ с
се )(46
Ω
OINV
Ρ
Σ
,+ + ΡΩ
Σ
qdste
C
CE C
CE
household household
total +
+ government
+ fixed + stock
market
home
absorption consumption investment change
consumption
INVSHR
T
qΣ
= ABS
PQ
QINV
+
·P
· dst
Q
Ratio
investment
of 4
)( 7
C
CE C
CE
absorption
to
FOOD
investment-
total fixed + stock
absorption =
absorption investment change
ratio
GOVSHR
TABS
Σ
Q PQ
•=Gc
Ratio
government
of )(48
C
CE
consumption
absorption
to
government
consumption- total government
=
absorption absorption consumption
ratio
59
APPENDIX B: CORE GAMS CODE FOR
STANDARD CGE MODEL
*SETS = == == == == == == == == == = == == == = = == == == == == == == == == == == == == == =
AC global set for model accounts-aggregated microsam accounts
A(AC) activities
ACES(A) activities with CES fn at top of technology nest
ALEO(A) activities with Leontief fn at top of technology nest
C(AC) commodities
CD(C) commodities with domestic sales of output
CDN(C) commodities without domestic sales of output
CE(C) exported commodities
CEN(C) non-exported commodities
CM(C) imported commodities
CMN(C) non-imported commodities
CX(C) commodities with output
F(AC) factors
INS(AC) institutions
INSD(INS) domestic institutions
INSDNG(INSD) domestic non-government institutions
H(INSDNG) households
*PARAMETERS == == == == == == == == == == == == == == == == == == == == == == == == == ==
60
61
* VARIABLES
*EQUATIONS == == == == == == == == == == == = = == == == == == == == == == == == == = == =
*Price block == == == == == == == == == == = = == == == == == == == == == == == == == == =
PMDEF(C) domestic import price
PEDEF(C) domestic export price
PDDDEF(C) demand price for com c produced and sold domestically
PQDEF(C) value of sales in domestic market
PXDEF(C) value of marketed domestic output
63
CPIDEF
PVADEF(A)
PINTADEF(A)
PADEF(A) output price for activity a
price of aggregate intermediate input
value-added price
consumer price index
DPIDEF domestic producer price index
*Institution block == == == == == == == == = = == == == == == == == == == == == == == = ==
YFDEF(F) factor incomes
YIDEF(INS)
YIFDEF(INS,F) factor incomes to domestic institutions
total incomes of domest non-gov’t institutions
EHDEF(H) household consumption expenditures
TRIIDEF(INS,INSP) transfers to inst ins from inst insp
HMDEM(C,H) LES cons demand by hhd h for marketed commodity c
HADEM(A,C,H) LES cons demand by hhd h for home commodity c fr act a
INVDEM(C) fixed investment demand
GOVDEM(C) government consumption demand
EGDEF total government expenditures
YGDEF total government income
||
||
* Price block =
||
PMDEF ( C ) $CM ( C ) ..
PM ( C ) =E= pwm ( C ) * ( 1 + tm ( C ) ) * EXR + SUM ( CT , PQ ( CT ) * icm ( CT , C ) ) ;
PEDEF ( C ) $ CE ( C ) ..
PE ( C ) = E= pwe (C ) * ( 1 te (C ) ) * EXR - SUM ( CT , PQ (CT ) * ice ( CT , C) ) ;
PODEF (C ) $ (CD ( C ) OR CM (C ) ) ..
PQ ( C ) * ( 1 tq ( c ) ) * QQ ( C ) =E = PDD ( C ) * QD ( C ) + PM ( C ) * QM ( C ) ;
PVADEF (A) .. *
PA (A) ( 1 - ta (A) ) * QA (A) = E= PVA (A) * QVA (A) + PINTA (A) * QINTA (A) ;
||
||
||
* Production and trade block
LEOAGGVA (A) $ALEO (A) .. QVA (A) =E= iva (A) * QA (A) ;
65
CESVAPRD (A) ..
QVA (A) =E = alphava (A) * ( SUM ( F ,
deltava ( F , A) * QF ( F , A) ** ( −rhova (A) ) ) ) ** ( - 1 /rhova (A) ) ;
CESVAFOC ( F , A) $ deltava ( F , A) ..
WF ( F ) *wfdist ( F , A) =E=
PVA (A) * ( 1 - tva (A) )
* QVA (A) * SUM ( FP , deltava ( FP , A) * QF ( FP , A) ** ( −rhova ( A) ) ) ** ( -1 )
*deltava ( F , A) * QF ( F , A) ** ( -rhova (A) −1 ) ;
COMPRDFN (A , C ) $ theta ( A, C ) ..
QXAC (A , C ) + SUM ( H , QHA ( A , C , H ) ) = E = theta (A , C ) * QA (A) ;
OUTAGGFN ( C ) $CX ( C ) ..
QX ( C ) =E= alphaac ( C ) * SUM (A , deltaac ( A , C ) *QXAC (A, C )
** ( - rhoac (C ) ) ) ** ( -1 / rhoac ( C ) ) ;
OUTAGGFOC ( A , C ) $deltaac (A , C ) ..
PXAC (A , C ) =E =
PX (C )
* QX (C ) * SUM (AP , deltaac (AP , C ) * QXAC (AP , C ) ** ( -rhoac (C ) ) ) ** ( - 1 )
*deltaac (A, C ) *QXAC (A, C ) ** ( -rhoac ( C ) -1 ) ;
CET ( C ) $ ( CE ( C ) AND CD ( C ) ) ..
QX (C ) = E = alphat ( C ) * ( deltat ( C ) * QE ( C ) ** rhot ( C ) +
( 1 - deltat ( C ) ) * QD ( C ) ** rhot ( C ) ) ** ( 1 / rhot ( C ) ) ;
ESUPPLY (C ) $ ( CE ( C ) AND CD ( C ) ) ..
QE (C ) = E= QD (C ) * ( ( PE ( C ) / PDS ( C ) ) *
( (1 deltat (C ) ) /deltat (C ) ) ) ** ( 1 / (rhot ( C ) -1 ) ) ;
ARMINGTON ( C ) $ ( CM ( C ) AND CD ( C ) ) ..
QQ (C) = E= alphaq (C ) * ( deltaq ( C ) * QM ( C ) ** ( -rhoq (C ) ) +
(1 -deltaq ( C ) ) * QD ( C ) ** ( -rhoq (C ) ) ) ** ( -1 /rhoq (C) ) ;
COSTMIN (C ) $ ( CM ( C ) AND CD ( C ) ) ..
QM (C ) = E= QD ( C ) * ( ( PDD (C ) / PM (C ) ) * (deltaq ( C ) / (1 - deltaq (C) ) ) )
** (1 / (1 + rhoq (C ) ) ) ;
QTDEM ( C ) $ CT ( C ) ..
QT (C ) = E= SUM ( CP , icm ( C , CP ) * QM (CP) + ice ( C , CP ) * QE ( CP ) + icd (C , CP ) * QD ( CP ) ) ;
|| ||
* Institution block
||
YFDEF ( F ) .. YF ( F ) = E= SUM (A , WF ( F ) *wfdist ( F , A) * QF ( F , A) ) ;
YIDEF ( INSDNG) ..
YI ( INSDNG ) =E=
SUM (F , YIF ( INSDNG , F ) ) + SUM ( INSDNGP , TRII ( INSDNG , INSDNGP ) )
+ trnsfr ( INSDNG , ' GOV ' ) * CPI + trnsfr ( INSDNG , ' ROW ' ) * EXR ;
EHDEF ( H ) ..
EH ( H ) =E= ( 1 — SUM ( INSDNG , shii ( INSDNG , H ) ) ) * (1 ― MPS ( H ) )
(1 TINS (H ) ) * YI (H) ;
HMDEM ( C , H ) $betam ( C , H ) ..
PQ ( C ) *QH (C , H ) = E=
PQ (C ) * gammam ( C , H )
-
+ betam (C , H ) * ( EH ( H ) SUM (CP , PQ (CP ) *gammam ( CP , H ) )
— SUM ( (A , CP ) , PXAC (A, CP ) * gammah (A , CP , H ) ) ) ;
HADEM ( A , C , H ) $betah ( A , C , H ) ..
PXAC (A, C ) *QHA (A , C , H ) =E=
PXAC (A , C) *gammah (A, C , H )
+ betah (A , C , H ) * ( EH ( H ) SUM ( CP , PQ ( CP ) * gammam ( CP , H) )
— SUM ( (AP , CP ) ,
PXAC (AP , CP) *gammah (AP , CP , H) ) ) ;
YGDEF ..
YG E SUM ( INSDNG , TINS ( INSDNG ) *YI ( INSDNG) )
+ SUM ( f , tf ( F ) *YF ( F ) )
+ SUM ( A, tva (A) * PVA (A) * QVA (A) )
+ SUM ( A , ta ( A) * PA (A ) * QA (A) )
+ SUM ( C , tm ( C ) *pwm ( C ) * QM ( C ) ) * EXR
+ SUM ( C , te ( C ) *pwe ( C ) * QE ( C ) ) * EXR
+ SUM (C , tq (C ) * PQ (C ) * QQ (C ) )
+ SUM ( F , YIF ( ' GOV ' , F ) )
+ trnsfr ( ' GOV ' , ' ROW ' ) * EXR ;
67
EGDEF .. EG =E= SUM ( C , PQ ( C ) * QG ( C ) ) + SUM ( INSD , trnsfr ( INSD , ' GOV ' ) ) * CPI ;
||
*System constraint block =
COMEQUIL (C ) ..
QQ ( C ) =E = SUM (A , QINT ( C , A) ) + SUM ( H , QH ( C , H ) ) + QG ( C )
+ QINV (C ) + qdst ( C ) + QT ( C ) ;
CURACCBAL ..
SUM ( C , pwm ( C ) * QM ( C ) ) + SUM ( F , trnsfr ( ' ROW ' , F ) ) =E=
SUM ( C , pwe ( C ) * QE ( C ) ) + SUM ( INSD , trnsfr ( INSD , ' ROW ' ) ) + FSAV ;
GOVBAL .. YG =E = EG + GSAV ;
TINSDEF ( INSDNG) .
TINS ( INSDNG ) = E = tinsbar ( INSDNG ) * ( 1 + TINSADJ * tins01 ( INSDNG ) ) +
DTINS *tins01 ( INSDNG) ;
MPSDEF ( INSDNG) ..
MPS ( INSDNG ) =E = mpsbar ( INSDNG) * ( 1 + MPSADJ *mps01 ( INSDNG ) ) + DMPS *mps01 ( INSDNG ) ;
SAVINVBAL ..
SUM ( INSDNG , MPS ( INSDNG) * (1 TINS ( INSDNG ) ) * YI ( INSDNG) )
+ GSAV + FSAV* EXR = E =
SUM (C , PQ ( C ) *QINV ( C ) ) + SUM ( C , PQ (C ) *qdst (C) ) + WALRAS ;
TABSEQ ..
TABS = E =
SUM ( (C , H ) , PQ ( C ) * QH ( C , H ) ) + SUM ( ( A , C , H ) , PXAC (A , C ) * QHA ( A , C , H) )
+ SUM ( C , PQ ( C ) * QG ( C ) ) + SUM (C , PQ ( C ) * QINV ( C ) ) + SUM ( C , PQ ( C ) * qdst ( C ) ) ;
Ginsburgh, V., and M. Keyzer. 1997. The structure of applied general equi-
librium models. Cambridge, Mass., U.S.A.: MIT Press.
Pyatt, G., and J. Round. 1985. Social accounting matrices: A basis for
planning. Washington, D.C.: World Bank.
68
69
Robinson, S., and M. El-Said. 2000. GAMS code for estimating a social ac-
counting matrix (SAM) using cross entropy methods (CE). Trade and
Macroeconomics Division Discussion Paper No. 64. Washington, D.C.:
International Food Policy Research Institute.
The purpose of this manual is to contribute to and facilitate the use of computable general equilibrium (CGE)
models in the analysis of issues related to food policy in developing countries . The volume includes a detailed
presentation of a static " standard " CGE model and its required database and incorporates features of partic-
ular importance in developing countries . The manual discusses the implementation of the model in GAMS
and is accompanied by a CD- ROM that includes the GAMS files for the model, sample databases, simulations ,
solution reports, and a social accounting matrix (SAM ) aggregation program . Although the volume provides a
standardized framework for analysis, the analyst is not forced to make " one -size-fits-all " assumptions . The
GAMS code is written to give the analyst considerable flexibility in model specification .
Exercises in General Equilibrium Modeling Using GAMS, by Hans Lofgren , Microcomputers in Policy Research 4a , 2000.
Key to Exercises in General Equilibrium Modeling Using GAMS, by Hans Lofgren, Microcomputers in Policy Research 4b, 2000.