Page 1 of 1
....... is not used in the model
Posted: Tue Sep 09, 2008 9:19 am
by nikvyas
Morning/afternoon/evening everyone.
I'm getting a particularly annoying error message that is preventing me from running my model.
"variable1 is not used in the model"
I'm getting this message for every single variable that is at the end of a logic chain. - these variables are used to display the results......................they aren't supposed to feed into another variable!
Could somebody please help me to eradicate this annoyance?
Thanks
Nik
Posted: Tue Sep 09, 2008 9:29 am
by Administrator
In the Vensim equation editor, tick the "Supplementary" box and the errors will go away.
They should not stop you running your models though.
Tony.
Posted: Tue Sep 09, 2008 9:37 am
by nikvyas
Tony - they do stop me from running the model because I get the message
"Model has errors and cannot be simulated"
Are you saying that I am going to have to go to every one of the variables that is at the end of a chain and check the supplementary box? Why? I haven't had to do so before ...................... I don't have the time ....................I don't see why I should have to - surely you should be more interested in why this is happening as opposed to offering a "quick fix".
Could you tell me WHY I am getting this message and whether this bug can be corrected?
[Edited on 9-9-2008 by nikvyas]
Posted: Tue Sep 09, 2008 9:49 am
by bob@vensim.com
The message you describe occurs on a check model to indicate that some variables are not used. It can be helpful as it may indicate feedback loops that are not closed.
It does not, however, prevent simulation. So, unless you are using a very old version of Vensim, it seems likely there is another error that is preventing simulation. Given when this is showing up the most likely error is "Used, Not computed..." which means you have not defined all the subscript elements for a variable. Scroll through the error list looking for different messages or use View>As Text and then check the model and it may be easier to find.
Posted: Tue Sep 09, 2008 1:36 pm
by nikvyas
Thanks Bob and Tony.
You are both right - the error message masked the fact that there are other real errors involving the subscripts.
I've tried to trace the cause of the error but am unable to do so. Bob - is there a chance you could have a quick look if I were to email you the model? Unfortunately I'm not able to attach it to this bb.
Thanks
Nik
Posted: Wed Sep 10, 2008 10:26 am
by bob@vensim.com
certainly you can email me the model - typically Used not computed results from a subscript subrange being used in the definition of a variable that appears on the RHS of an equation using the full subscript.
Posted: Fri Oct 03, 2008 7:08 am
by nikvyas
Thanks for the offer Bob - been away for a while, so just read your post.
I've sorted the problem out - it turned out that I had made a couple of silly mistakes (mis-named a couple of subscript elements). It seems to be running OK now.