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

Problems with syntax of GAMS
veronna
User
User
Posts: 4
Joined: 1 week ago

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

Postby veronna » 5 days ago

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: 54
Joined: 1 year ago

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

Postby Renger » 4 days ago

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

veronna
User
User
Posts: 4
Joined: 1 week ago

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

Postby veronna » 3 days ago

Thanks Renger. The problem is solved.


Who is online

Users browsing this forum: No registered users and 1 guest