Solve aborted Error
Solve aborted Error
I am attempting to execute a CGE (Computable General Equilibrium) model. While the calibration phase runs without issue, I am encountering errors when running the simulation file. I am currently unable to identify the root cause of the issue. Please find attached the model file in question. I would greatly appreciate any assistance you may be able to provide!
Re: Solve aborted Error
Hello,
I ran successfully 1model.gm without any change. Maybe your computer has a problem.
With regards,
Rodrigue
I ran successfully 1model.gm without any change. Maybe your computer has a problem.
With regards,
Rodrigue
Re: Solve aborted Error
Hermela,
I looked at the 1model.log file in the .zip you sent. It looks like a normal and successful run. Where are you seeing errors? Please be specific about where you see errors, and why you consider them to be so.
-Steve
I looked at the 1model.log file in the .zip you sent. It looks like a normal and successful run. Where are you seeing errors? Please be specific about where you see errors, and why you consider them to be so.
-Steve
Re: Solve aborted Error
Thank you for your help Steve. The 1model runs just fine, however, when I run 2simulation.gms GAMS show me a lot of errors. As I am new to GAMS, I tried my best but couldn't find the solution.
Re: Solve aborted Error
Hermela,
I don't see the file 2simulation.log in the .zip file. Ditto for 2simulation.lst. If you send those, it is more likely you'll get good help.
-Steve
I don't see the file 2simulation.log in the .zip file. Ditto for 2simulation.lst. If you send those, it is more likely you'll get good help.
-Steve
Re: Solve aborted Error
Hermela,
I don't see the files 2simulation.log and 2simulation.lst in your attachments. If you send those, it is more likely you'll get good help.
-Steve
I don't see the files 2simulation.log and 2simulation.lst in your attachments. If you send those, it is more likely you'll get good help.
-Steve
Re: Solve aborted Error
Hi Steve. I don't have 2simulation.log and 2sim.lst files. Every time I run GAMS all I get is the following attachments. I couldn't attached the .lst file as it is so I converted it to doc. I hope this will help me . Thank you very much
Re: Solve aborted Error
the solve aborted error is now solved, thank you so much all for your inputs. I am now facing a new error : error 170 domain violation for element. Some of the equations error is showing are
QHTAB(H,'init') = SUM(A, PA0(A)*QHA0(A,H)*hpop(H)) + SUM(C, PQ0(C)*QH0(C,H)*hpop(H));
QHTAB('TOTAL','init') = SUM((A,H), PA0(A)*QHA0(A,H)*hpop(H)) + SUM((C,H), PQ0(C)*QH0(C,H)*hpop(H));
QHTAB(H,XC)$QHTAB(H,'init') = ((QHTAB(H,XC)/QHTAB(H,'Base'))**(1/TNUM)-1)*100;
Can someone kindly help me in solving this error please? GAMS shows that the error is occurring on set element 'init'
QHTAB(H,'init') = SUM(A, PA0(A)*QHA0(A,H)*hpop(H)) + SUM(C, PQ0(C)*QH0(C,H)*hpop(H));
QHTAB('TOTAL','init') = SUM((A,H), PA0(A)*QHA0(A,H)*hpop(H)) + SUM((C,H), PQ0(C)*QH0(C,H)*hpop(H));
QHTAB(H,XC)$QHTAB(H,'init') = ((QHTAB(H,XC)/QHTAB(H,'Base'))**(1/TNUM)-1)*100;
Can someone kindly help me in solving this error please? GAMS shows that the error is occurring on set element 'init'
Re: Solve aborted Error
I think the error is clear from the message, your symbol QHTAB has been declared over some sets (probably H,XC) that do not include the element 'init' (or 'base' or 'total') and hence the compiler gives you an error. Look at the declaration of QHTAB and confirm that the domain sets do not include 'init' (or the others). Now try to explain why you should be able to use the label. There are always ways around something like this (e.g. declare QHTAB over the universe, i.e. QHTAB(*,*), but GAMS does a domain check on purpose to detect model errors and the original modeler probably put some thoughts into this, so I would not lightly change that. Try to understand the issue and look for a good solution.
-Michael
PS The code you shared before does not mention the symbol QHTAB.
-Michael
PS The code you shared before does not mention the symbol QHTAB.