I am currently using the tool gEcon trying to create static CGE-models. As a starting point I am using a sample model from the gEcon developers. I already implemented small changes and managed that I was able to find an equilibrium after loading the model into R.
The model which works is this (open in Notepad++) https://www.dropbox.com/s/ljcpaf557lotq54/Model_2factors.gcn?dl=0
You can check running it in R and finding an equilibrium. Just run the R-File after changing the filepaths for the gcn- and the two excell files.
From this point I am trying to add the third Factor 'R' into the model, with properties just as the other factors. I define everything analog to how the other factors were implemented, but I fail to find the equilibrium in R. (For trying out just change filepaths in the R-file)
I have tried many ways of defining the new factor (number of equations need to match number of variables) but failed to do so correctly. The error message popping up in R is somewhat misleading, as the cause is not that the initial values of the variables are too far of. There is just no other error message it this point. I even set them once one by one almost exactly onto their correct values.
Can somebody see what I am doing wrong with my new factor? Any suggestions what to try out? if you need further information, I am happy to tell you.