MPSGE NESTING STRUCTURE

Archive of Gamsworld Google Group
Post Reply
Archiver
User
User
Posts: 7876
Joined: 7 years ago

MPSGE NESTING STRUCTURE

Post by Archiver »


Hi all,

I need some help with this MPSGE nesting structure.
It is a multi-regional CGE model. The model has 5 national regions and the ROW.
I am supposing that domestic commodity (py(i,r)) is combined with domestic good from the other national region (pmr(i,r)) with elasticity i.tl:esubd(i). After that this composite good is combined with an imported commodity ((pm(i,r)) one by one with elasticity k.tl:esubd(k).
The MPSGE is reporting this error:
"Two nesting labels in production record."

Is it possible to create is type of nest structure?


$prod:y(j,r)$vom(j,r) t:5 s:0 k.tl:esubd(k) i.tl(k.tl):esubd(i) va:esubva(j)
o:px(j,r) q:vxmd(j,r,"row") a:govt(r) t:(rto(j,r)+rts(j,r))
o:py(j,r) q:(vom(j,r) - vxmd(j,r,"row")) a:govt(r) t:(rto(j,r)+rts(j,r))
i:py(i,r) q:vdfm(i,j,r) p:(1+rtfd(i,j,r)) i.tl: a:govt(r) t:rtfd(i,j,r)
i:pmr(i,r) q:vifmr_t(i,j,r) p:1 i.tl:
i:pm(i,r) q:vifm(i,j,r) p:(1+rtfi(i,j,r)) k.tl: a:govt(r) t:rtfi(i,j,r)
i:ps(sf,j,r) q:vfm(sf,j,r) p:(1+rtf(sf,j,r)) va: a:govt(r) t:rtf(sf,j,r)
i:pf(f,r) q:vfm(f,j,r) p:(1+rtf(f,j,r)) va: a:govt(r) t:rtf(f,j,r)


Thanks, best

Cicero

--
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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: MPSGE NESTING STRUCTURE

Post by Archiver »


Hi Cicero,
I don't know which is your nesting structure, but I could suggest putting your production in different parts, I mean, you can put, first the transformation of the output in other $prod: paragraph
The same happens with the production of the output. You can put in one paragraph the first composite and the second step of the production process in other one. Maybe, you find the mistake...
I hope it helps you,
Bests,
Raquel



El miércoles, 17 de febrero de 2016, 0:40:40 (UTC+1), Cicero Zanetti de Lima escribió:

Hi all,

I need some help with this MPSGE nesting structure.
It is a multi-regional CGE model. The model has 5 national regions and the ROW.
I am supposing that domestic commodity (py(i,r)) is combined with domestic good from the other national region (pmr(i,r)) with elasticity i.tl:esubd(i). After that this composite good is combined with an imported commodity ((pm(i,r)) one by one with elasticity k.tl:esubd(k).
The MPSGE is reporting this error:
"Two nesting labels in production record."

Is it possible to create is type of nest structure?


$prod:y(j,r)$vom(j,r) t:5 s:0 k.tl:esubd(k) i.tl(k.tl):esubd(i) va:esubva(j)
o:px(j,r) q:vxmd(j,r,"row") a:govt(r) t:(rto(j,r)+rts(j,r))
o:py(j,r) q:(vom(j,r) - vxmd(j,r,"row")) a:govt(r) t:(rto(j,r)+rts(j,r))
i:py(i,r) q:vdfm(i,j,r) p:(1+rtfd(i,j,r)) i.tl: a:govt(r) t:rtfd(i,j,r)
i:pmr(i,r) q:vifmr_t(i,j,r) p:1 i.tl:
i:pm(i,r) q:vifm(i,j,r) p:(1+rtfi(i,j,r)) k.tl: a:govt(r) t:rtfi(i,j,r)
i:ps(sf,j,r) q:vfm(sf,j,r) p:(1+rtf(sf,j,r)) va: a:govt(r) t:rtf(sf,j,r)
i:pf(f,r) q:vfm(f,j,r) p:(1+rtf(f,j,r)) va: a:govt(r) t:rtf(f,j,r)


Thanks, best

Cicero

--
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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Post Reply