Dear friends,
I am running one simple MPSGE model from “appendix2 of the paper named ‘Moving from static to dynamic general equilibrium economic models(attached)’”. But I encounter a error like following. Is there somebody can kindly help me about this? The original code is followed in the end, could you kindly copy it into your GAMS and run it? Please let me know if you can successfully solved it.
I will be grateful to you very much. Waiting for your help!
Best
FAN Jingli
$ERROR ERROR ENCOUNTERED IN PREPROCESSOR
**** $333
**** LINE 78 INCLUDE D:\GAMs workfile\modeling practice\225a\gamsgeh.dat
**** LINE 20 SYSINCLUDE D:\GAMS23.0\mpsgeset
%1 M_1
**** LINE 44 INPUT D:\GAMs workfile\modeling practice\textbook of cge
modeling\simple cge model.gms
**** 333 $Error encountered - see listing for details
144
MPS/GE PREPROCESSOR - ERROR
Error preprocessing model:M_1
*** CHKSET: unrecognized set argument: H
Last input record:
I:PF(f) Q:1 P:delta(i,f) a:ra(h) t:(t(h)*tax(i,f))
159 $ABORT Compilation aborted.
**** $343
**** LINE 95 INCLUDE D:\GAMs workfile\modeling practice\225a\gamsgeh.dat
**** LINE 20 SYSINCLUDE D:\GAMS23.0\mpsgeset
%1 M_1
**** LINE 44 INPUT D:\GAMs workfile\modeling practice\textbook of cge
modeling\simple cge model.gms
**** 343 Abort triggered by above statement
**** 2 ERROR(S) 0 WARNING(S)
GAMS Rev 230 WIN-VIS 23.0.2 x86/MS Windows 07/04/12 01:25:42 Page 2
Shoven and Whalley model
Include File Summary
SEQ GLOBAL TYPE PARENT LOCAL FILENAME
1 1 INPUT 0 0 D:\GAMs workfile\modeling practice\tex
tbook of cge modeling\simple cge model
.gms
2 44 SYSINCLUDE 1 44 .D:\GAMS23.0\mpsgeset
3 63 CALL 2 19 .gmsge_nx “D:\GAMs workfile\modeling p
ractice\225a\gamscge.dat”
4 64 INCLUDE 2 20 …D:\GAMs workfile\modeling practice\2
25a\gamsgeh.dat
The original code is followed:
$ title Shoven and Whalley model
set i / M Manufacture, N Non-manufacture/,
f / K Capital, L Labor/,
h / R Rich, P Poor/;
parameters sigma(i) /m 2, n 0.5/,
phi(i) /m 1.5, n 2.0/,
sig(h) /R 1.5, P 0.75/;
table delta(f,i)
M N
k 0.4 0.3
l 0.6 0.7 ;
table alpha(i,h)
R P
M 0.5 0.5
N 0.3 0.7;
table fe(f,h)
R P
K 25 0
L 0 60;
parameter t(h) /r 0.4, p 0.6/;
parameter tax(f,i);
$ontext
$model:M_1
$sectors:
x(i) ! Production sector
$commodities:
PX(i) ! output price
PF(f) ! factor price
$consumer:
RA(h) ! representative agent
$PROD:X(i) S:sigma(i)
O:PX(i) Q:phi(i)
I:PF(f) Q:1 P:delta(f,i) a:ra(h) t:(t(h)*tax(f,i))
$DEMAND:RA(h) s:sig(h)
D:PX(i) Q:1 P:(alpha(i,h)**(1/sig(h))
E:PF(f) Q:fe(f,h)
$offtext
$sysinclude mpsgeset M_1
tax(i,f)=0;
M_1.iterlim=5000;
$include M_1.gen
solve M_1 using mcp;
tax(“M”,“k”)=0.5
$include M_1.gen
solve M_1 using mcp;
\
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/ycZHLnKO3K8J.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.