Page 1 of 1

Need help for a Price Shock in MPSGE

Posted: Thu Apr 05, 2012 4:14 pm
by Archiver

Dear GAMS users,

I have a question about MPSGE.
I tried to search the answer in the GAMS archive, but I failed to find
it therefore I decided to ask you.

I would like to ask you the following question.

I am trying to see the effects on economy and consumer when there's a
10% price increase for a commodity. Let the commodity be Electricity.
I am not sure how to code the price shock into an MPSGE code.

I would really appreciate your reply.
Thank you very much in advance.

Best regards,
Mary


Here below you can find a sample code.
Most of the sample code from:
[From an Input-Output Table to a General Equilibrium Model: Assessing
the Excess Burden of Indirect Taxes in Russia, Thomas Rutherford and
Sergey Paltsev
August, 1999]



* core MPSGE model

$ontext

$model:static

$sectors:

y(i) ! Sectoral production
a(i) ! Armington supply
x(i) ! Export
m(i) ! Import
c ! Private consumption
g ! Public sector demand
inv ! Investment

$commodities:
pa(i) ! Armington price
pd(i) ! Domestic market price
pm(i) ! Import price
px(i) ! Export price
pc ! Consumption price
pinv ! Investment price
pfx ! Foreign exchange
pg ! Public goods price
pl ! Wage rate
rk ! Return to capital

$consumer:
ra ! Representative agent

$prod:y(i) t:1 s:0 va:1
o:px(i) q:x0(i) a:ra t:ty(i)
o:pd(i) q:(d0(i)) a:ra t:ty(i)
i:pa(j) q:iod(j,i)
i:pl q:ld0(i) p:(1+tl(i)) a:ra t:tl(i) va:
i:rk q:kd0(i) va:

$prod:a(i) s:0 dm:4
o:pa(i) q:a0(i) a:ra t:(ta(i)+tn(i))
i:pd(i) q:d0(i) dm:
i:pm(i) q:(pm0(i)*m0(i)) dm:

$prod:x(i)
o:pfx q:x0(i)
i:px(i) q:x0(i)

$prod:m(i)
o:pm(i) q:(pm0(i)*m0(i))
i:pfx q:m0(i) a:ra t:tm(i)

$prod:g
o:pg q:g0
i:pa(i) q:gd0(i)

$prod:inv
o:pinv q:i0
i:pa(i) q:id0(i)

$prod:c s:1
o:pc q:c0
i:pa(i) q:cd0(i)

$demand:ra
d:pc q:c0
e:pl q:ls0
e:rk q:ks0
e:pfx q:bopdef
e:pg q:(-g0)
e:pinv q:(-i0)

$offtext
$sysinclude mpsgeset static

static.iterlim = 0;
$include static.gen
solve static using mcp;



Re: Need help for a Price Shock in MPSGE

Posted: Wed Jun 26, 2013 4:26 pm
by Archiver

Hi Mary, were you able to find an answer to this question?

Best,
Javier

On Thursday, April 5, 2012 10:14:51 AM UTC-4, L Mary wrote:

Dear GAMS users,

I have a question about MPSGE.
I tried to search the answer in the GAMS archive, but I failed to find
it therefore I decided to ask you.

I would like to ask you the following question.

I am trying to see the effects on economy and consumer when there's a
10% price increase for a commodity. Let the commodity be Electricity.
I am not sure how to code the price shock into an MPSGE code.

I would really appreciate your reply.
Thank you very much in advance.

Best regards,
Mary


Here below you can find a sample code.
Most of the sample code from:
[From an Input-Output Table to a General Equilibrium Model: Assessing
the Excess Burden of Indirect Taxes in Russia, Thomas Rutherford and
Sergey Paltsev
August, 1999]

* core MPSGE model

$ontext

$model:static

$sectors:

y(i) ! Sectoral production
a(i) ! Armington supply
x(i) ! Export
m(i) ! Import
c ! Private consumption
g ! Public sector demand
inv ! Investment

$commodities:
pa(i) ! Armington price
pd(i) ! Domestic market price
pm(i) ! Import price
px(i) ! Export price
pc ! Consumption price
pinv ! Investment price
pfx ! Foreign exchange
pg ! Public goods price
pl ! Wage rate
rk ! Return to capital

$consumer:
ra ! Representative agent

$prod:y(i) t:1 s:0 va:1
o:px(i) q:x0(i) a:ra t:ty(i)
o:pd(i) q:(d0(i)) a:ra t:ty(i)
i:pa(j) q:iod(j,i)
i:pl q:ld0(i) p:(1+tl(i)) a:ra t:tl(i) va:
i:rk q:kd0(i) va:

$prod:a(i) s:0 dm:4
o:pa(i) q:a0(i) a:ra t:(ta(i)+tn(i))
i:pd(i) q:d0(i) dm:
i:pm(i) q:(pm0(i)*m0(i)) dm:

$prod:x(i)
o:pfx q:x0(i)
i:px(i) q:x0(i)

$prod:m(i)
o:pm(i) q:(pm0(i)*m0(i))
i:pfx q:m0(i) a:ra t:tm(i)

$prod:g
o:pg q:g0
i:pa(i) q:gd0(i)

$prod:inv
o:pinv q:i0
i:pa(i) q:id0(i)

$prod:c s:1
o:pc q:c0
i:pa(i) q:cd0(i)

$demand:ra
d:pc q:c0
e:pl q:ls0
e:rk q:ks0
e:pfx q:bopdef
e:pg q:(-g0)
e:pinv q:(-i0)

$offtext
$sysinclude mpsgeset static

static.iterlim = 0;
$include static.gen
solve static using mcp;

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.



Re: Need help for a Price Shock in MPSGE

Posted: Sun Jul 30, 2017 7:20 pm
by carla81
Hello,

Could anyone help me on simulating a shock on an output price in MPSGE?
In particular, I need to simulate the effects of an increase in electricity commodity price as given by an energy system partial equilibrium model.

Thank you!
Carla