Economic Equilibrium Modeling with GAMS
Economic Equilibrium Modeling with GAMS
Economic Equilibrium Modeling with GAMS
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
18<br />
$MODEL:EXCHANGE<br />
$COMMODITIES:<br />
PX ! EXCHANGE PRICE OF GOOD X<br />
PY ! EXCHANGE PRICE OF GOOD Y<br />
$CONSUMERS:<br />
A ! CONSUMER A<br />
B ! CONSUMER B<br />
$DEMAND:A s:SIGMA_A<br />
E:PX Q:XA<br />
E:PY Q:YA<br />
D:PX Q:THETA_A<br />
D:PY Q:(1-THETA_A)<br />
$DEMAND:B s:SIGMA_B<br />
E:PX Q:(1-XA)<br />
E:PY Q:(1-YA)<br />
D:PX Q:THETA_B<br />
D:PY Q:(1-THETA_B)<br />
$OFFTEXT<br />
$SYSINCLUDE mpsgeset EXCHANGE<br />
$INCLUDE EXCHANGE.GEN<br />
SOLVE EXCHANGE USING MCP;<br />
SCALAR<br />
PRATIO EQUILIBRIUM PRICE OF X IN TERMS OF Y,<br />
IRATIO EQUILIBRIUM RATIO OF CONSUMER INCOMES;<br />
PRATIO = PX.L / PY.L;<br />
IRATIO = A.L / B.L;<br />
DISPLAY IRATIO, PRATIO;<br />
The foregoing sets up the model and computes the competitive equilibrium. After<br />
<strong>GAMS</strong> returns from the solver, we declare and compute some report values.<br />
Absolute levels of income and price returned from a general equilibrium model are not<br />
meaningful because a model determines only relative prices. For this reason, we report<br />
equilibrium income and price levels in relative terms.<br />
In the nal step, we compute an alternative e cient equilibrium, one in which the<br />
income levels for A and B are equal. The purpose of this exercise is to demonstrate the<br />
second welfare theorem. When incomes are both xed, the equilibrium remains e cient,<br />
but the connection between market prices and endowment income is eliminated.