22.04.2013 Views

Economic Equilibrium Modeling with GAMS

Economic Equilibrium Modeling with GAMS

Economic Equilibrium Modeling with GAMS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12<br />

In an equilibrium, nal demand always equals endowments for both goods, because<br />

these are the only sources of demand and supply. The model as parameterized demonstrates<br />

that if we set endowments for this model equal to the demand function calibration point,<br />

the model equilibrium price ratio equals the benchmark MRS.<br />

This program begins <strong>with</strong> some <strong>GAMS</strong> statements in which three scalar parameters<br />

are declared. These parameters will be used in the place of numbers <strong>with</strong>in the MPSGE<br />

model. The syntax for these <strong>GAMS</strong> statements is introduced in Chapter 2 of the <strong>GAMS</strong><br />

manual. In short, we declare x, y and MRS as scalar parameters and initialize the rst<br />

two of these to unity. The MRS parameter is assigned a value following the solution of the<br />

model.<br />

SCALAR<br />

X QUANTITY OF X FOR WHICH THE MRS IS TO BE EVALUATED /1/<br />

Y QUANTITY OF Y FOR WHICH THE MRS IS TO BE EVALUATED /1/<br />

MRS COMPUTED MARGINAL RATE OF SUBSTITUTION;<br />

The remainder of the MPSGE program is, in fact, simpler than Example 1.<br />

$ONTEXT<br />

$MODEL:MRSCAL<br />

$COMMODITIES:<br />

PX ! PRICE INDEX FOR GOOD X<br />

PY ! PRICE INDEX FOR GOOD Y<br />

$CONSUMERS:<br />

RA ! REPRESENTATIVE AGENT<br />

$DEMAND:RA s:1<br />

D:PX Q:1 P:(1/4)<br />

D:PY Q:1 P:1<br />

E:PX Q:X<br />

E:PY Q:Y<br />

$OFFTEXT<br />

$SYSINCLUDE mpsgeset MRSCAL<br />

$INCLUDE MRSCAL.GEN<br />

SOLVE MRSCAL USING MCP;<br />

Following the solution, we compute a function of the solution values, the ratio of the<br />

price of x to the price of y. We do this using the <strong>GAMS</strong> syntax which references the<br />

equilibrium level values of the PX and PY and storing this result in the scalar MRS. This<br />

scalar value is then displayed in the listing le <strong>with</strong> 8 digits:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!