**** ERROR: CNS models must be square

Problems with modeling
Post Reply
acr31
User
User
Posts: 7
Joined: 1 year ago

**** ERROR: CNS models must be square

Post by acr31 »

Hello everyone,

I am running a CGE model and I have encountered this error: " **** ERROR: CNS models must be square. This model contains 22334 equality rows and 22086 unfixed columns"

I am not sure what it means. Could anyone help me understand what it means and potentially give me some hints about what it is causing it?

Thanks in advance!
Fred
Posts: 372
Joined: 7 years ago

Re: **** ERROR: CNS models must be square

Post by Fred »

Hi,

It may be helpful to have a look at the documentation of model type CNS where it is for example explained that the number of equations equals the number of variables, so we have a square system.

Searching this forum for "CNS models must be square" also gives a useful result to a thread where a similar question has been asked and answered before.

I hope this helps!

Fred
acr31
User
User
Posts: 7
Joined: 1 year ago

Re: **** ERROR: CNS models must be square

Post by acr31 »

Hi Fred,

Thanks a lot! I understand better the error now. However, it is difficult to work out what is causing it in particular as the error is very vague. It does not really tell you which specific columns are unfixed. Anyone knows how to figure that out?
Rodrigue
User
User
Posts: 33
Joined: 5 years ago

Re: **** ERROR: CNS models must be square

Post by Rodrigue »

acr31 wrote: 1 year ago Hello everyone,

I am running a CGE model and I have encountered this error: " **** ERROR: CNS models must be square. This model contains 22334 equality rows and 22086 unfixed columns"

I am not sure what it means. Could anyone help me understand what it means and potentially give me some hints about what it is causing it?

Thanks in advance!

Hi

The number of endogenous variables is greater than the number of equations. You have 22334 equations and 22086 endogenous variables. Therefore, the model is not square. You need to release 248 variables so that the number of endogenous variables increases to 22334.

Best,

Rodrigue
acr31
User
User
Posts: 7
Joined: 1 year ago

Re: **** ERROR: CNS models must be square

Post by acr31 »

Hi Rodrigue!

Thank you for your response and apologies for the late reply.

What do you mean by "release 248" variables?

Thanks
Post Reply