Page 1 of 1

SOLVE from line 689 ABORTED, EXECERROR = 1

Posted: Thu Aug 17, 2023 12:15 pm
by furyblack
I'm trying to model a open economic CGE model, find an error, SOLVE from line 689 ABORTED, EXECERROR = 1..would anyone help me check,THKS!

Re: SOLVE from line 689 ABORTED, EXECERROR = 1

Posted: Tue Aug 29, 2023 8:28 am
by bussieck
You are using MCP to solve your model. MCP models need to be square. GAMS tells you (if you look careful at the lst file) that the model is not square:

Code: Select all

**** Counts do not match
     Single equations in unmatched =E= blocks     2492
     Unmatched single free variables              2575
Then GAMS lists the unmatches equations and variables. Best practice for MCP is to provide the matching of variables and equations directly in the model statement then you know where the unmatched vars/equs come from.

-Michael

Re: SOLVE from line 689 ABORTED, EXECERROR = 1

Posted: Wed Feb 28, 2024 7:15 am
by 903510564@qq.com
bussieck wrote: 8 months ago You are using MCP to solve your model. MCP models need to be square. GAMS tells you (if you look careful at the lst file) that the model is not square:

Code: Select all

**** Counts do not match
     Single equations in unmatched =E= blocks     2492
     Unmatched single free variables              2575
Then GAMS lists the unmatches equations and variables. Best practice for MCP is to provide the matching of variables and equations directly in the model statement then you know where the unmatched vars/equs come from.

-Michael
Dear Michael,

I have encountered the same issue as him. It seems that the quantity of equations and variables are inequality in our codes. I tried to fix the free variables, but no matter how many variables I fixed, the quantity of 'Single equations in unmatched' remains the same. I am a beginner of CGE model and suffered by this problem for few days, could you give some specific advice for me? Thank you.

Best wishes,
Yang