Error 70 The dimensions of the equ.var pair do not conform

Problems with syntax of GAMS
Post Reply
veronna
User
User
Posts: 5
Joined: 6 years ago

Error 70 The dimensions of the equ.var pair do not conform

Post by veronna »

Hi,

In the MCP model, every equation should be match to a complementary variable.
Regarding to this matter, should those equations of system constraint block (such as market equilibrium for factors and composite commodities) be included, or just ignore?
If these equations are involved, the numbers between variables and equation will not be equal.

In addition, the GAMS error I got as following...

**** The following MCP errors were detected in model MYCGE:
**** 70 PD dimensions are different
**** 70 WF dimensions are different
**** 70 IADJ dimensions are different


Thank you very much in advance.
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: Error 70 The dimensions of the equ.var pair do not conform

Post by Renger »

Hi Veronna

It looks like you "coupled" the equations with the wrong variables because the dimension of the variable doesn't match the dimension of the equation. You should, therefore, check the dimension of the variable-equation pair.
You could let the solver match all the variables to the equations (just write your model definition without the dot-notation and just the equations). This was/is the way it is partly done in the IFPRI model. Partly, because in the IFPRI model you have closure rules. Depending on the choice of the closure rule, one variable is fixed and another is free. This might be the second problem, that you have differing equations and variables: you might have coupled the fixed variable to the closure equation, instead of the free variable.

Hope this helps a little bit.
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
veronna
User
User
Posts: 5
Joined: 6 years ago

Re: Error 70 The dimensions of the equ.var pair do not conform

Post by veronna »

Thanks Renger. The problem is solved.
JJcoul09
User
User
Posts: 16
Joined: 2 years ago

Re: Error 70 The dimensions of the equ.var pair do not conform

Post by JJcoul09 »

Bonjour cher tous,
Je rencontre le même problème dans la résolution de mon code GAMS pour résoudre le modèle EGC que j'ai élaborer.
Concrètement, comment je dois procéder pour résoudre cela.
Bien merci à vous
Post Reply