The PROVIDE Project Standard Computable General Equilibrium ...
The PROVIDE Project Standard Computable General Equilibrium ...
The PROVIDE Project Standard Computable General Equilibrium ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>PROVIDE</strong> <strong>Project</strong> Technical Paper 2003: 3 October 2003<br />
6.2. GAMS Code<br />
*############### 14. EQUATIONS ######################################<br />
*## PRICE BLOCK<br />
* For some c there are no imports hence only implement for cm(c)<br />
PMDEF(c)$cm(c).. PM(c) =E= (PWM(c) *(1 + (TMADJ * tm(c)))) * ER ;<br />
* For some c there are no exports hence only implement for ce(c)<br />
PEDEF(c)$ce(c).. PE(c) =E= PWE(c) * ER * (1 - (TEADJ * te(c))) ;<br />
PQDDEF(c)$(cd(c) OR cm(c))..<br />
PQD(c) =E= PQS(c) * (1 + (TSADJ*ts(c))) ;<br />
PQSDEF(c)$(cd(c) OR cm(c))..<br />
PQS(c)*QQ(c) =E= (PD(c)*QD(c))+(PM(c)*QM(c)) ;<br />
PXCDEF(c)$cx(c)..<br />
PXC(c)*QXC(c) =E= (PD(c)*QD(c)) + (PE(c)*QE(c))$ce(c) ;<br />
PXDEF(a).. PX(a) =E= SUM(c,actcomactsh(a,c)*PXC(c)) ;<br />
PVADEF(a)..<br />
PX(a)*(1-(TXADJ*tx(a)))*QX(a)<br />
=E= (PVA(a)*QVA(a)) + (PINT(a)*QINT(a)) ;<br />
PINTDEF(a).. PINT(a) =E= SUM(c,comactactco(c,a) * PQD(c)) ;<br />
CPIDEF.. CPI =E= SUM(c,comtotsh(c)*PQD(c)) ;<br />
PPIDEF.. PPI =E= SUM(c,vddtotsh(c)*PD(c)) ;<br />
*## PRODUCTION BLOCK<br />
* CES aggregation functions for Level 1 of production nest<br />
QXPRODFN(a)$aqx(a)..<br />
QX(a) =E= adx(a)*(deltax(a)*QVA(a)**(-rhocx(a))<br />
+ (1-deltax(a))*QINT(a)**(-rhocx(a)))<br />
**(-1/rhocx(a)) ;<br />
QXFOC(a)$aqx(a)..<br />
QVA(a) =E= QINT(a)*((PINT(a)/PVA(a))*(deltax(a)/<br />
(1-deltax(a))))**(1/(1+rhocx(a))) ;<br />
* Leontief aggregation functions for Level 1 of production nest<br />
QINTDEF(a)$aqxn(a)..<br />
QINT(a) =E= ioqintqx(a) * QX(a) ;<br />
QVADEF(a)$aqxn(a)..<br />
QVA(a) =E= ioqvaqx(a) * QX(a) ;<br />
* CES aggregation functions for Level 2 of production nest<br />
QVAPRODFN(a)..<br />
QVA(a) =E= adva(a)*(SUM(f$deltava(f,a),<br />
deltava(f,a)*FD(f,a)**(-rhocva(a))))<br />
**(-1/rhocva(a)) ;<br />
QVAFOC(f,a)$deltava(f,a)..<br />
WF(f)*WFDIST(f,a) =E= PVA(a)*QVA(a)<br />
*(SUM(fp$deltava(fp,a),deltava(fp,a)<br />
*FD(fp,a)**(-rhocva(a))))**(-1)<br />
*deltava(f,a)*FD(f,a)**(-rhocva(a)-1) ;<br />
QINTDEQ(c).. QINTD(c) =E= SUM(a,comactactco(c,a)*QINT(a)) ;<br />
COMOUT(c)$cx(c)..<br />
QXC(c) =E= adxc(c)*(SUM(a$deltaxc(a,c),deltaxc(a,c)<br />
*QXAC(a,c)**(-rhocxc(c))))**(-1/rhocxc(c)) ;<br />
COMOUTFOC(a,c)$deltaxc(a,c)..<br />
PXAC(a,c) =E= PXC(c)*QXC(c)<br />
*(SUM(ap$deltaxc(ap,c),deltaxc(ap,c)<br />
*QXAC(ap,c)**(-rhocxc(c))))**(-1)<br />
*deltaxc(a,c)*QXAC(a,c)**(-rhocxc(c)-1) ;<br />
© S. McDonald<br />
55