Error Message

Use this forum to post Vensim related questions.
Post Reply
reza1999
Junior Member
Posts: 8
Joined: Sat Oct 07, 2023 2:09 pm
Vensim version: PLE

Error Message

Post by reza1999 »

hi everyone
I have encountered some errors in simulating Vensim.the error says variable 'not used in the model'
I chose the 'supplementary' option but it was not cleared.
and another error is 'simultaneous equation involving : (variable)'

thanks.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Error Message

Post by Administrator »

It's impossible to help you unless you upload the model.

Setting a variable as 'supplementary' should clear the warning. It's not an error, it's telling you that you have a calculation that is not used.

Simultaneous equations means you've probably got an error in the logic of your model.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
reza1999
Junior Member
Posts: 8
Joined: Sat Oct 07, 2023 2:09 pm
Vensim version: PLE

Re: Error Message

Post by reza1999 »

Hello again.
This is my model that errors on
Attachments
1000 (1).mdl
(39.75 KiB) Downloaded 50 times
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Error Message

Post by Administrator »

The equation for "qpd0" is clearly incorrect. You cannot use "qpd0" to calculate "qpd0".

qpd0 = IF THEN ELSE(TPD=0, IF THEN ELSE(HD-qpd0>=qp-qpd0, qp-qpd0 , qp-qpd0*HD-qpd0/qp-qpd0 ) , 0 )

It's difficult to offer any advice here. I have no idea what "qpd" means and as there are no units in the model, it's impossible to guess.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
reza1999
Junior Member
Posts: 8
Joined: Sat Oct 07, 2023 2:09 pm
Vensim version: PLE

Re: Error Message

Post by reza1999 »

Actually I used the equation from this article for my college project.
That's weird for me too. I have no idea about it.
I asked my teacher and he said that might be a 'recursive function'.
Any ideas?
Thank you.
Attachments
IMG_20231018_195557.jpg
IMG_20231018_195557.jpg (45.48 KiB) Viewed 906 times
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Error Message

Post by Administrator »

All I can suggest is start at section 4.3 of that document and implement each equation 1 at a time.

It's not something I would want to do. It looks awful.

PS. I've removed the paper as you need the author's permission to post on a public forum such as this.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: Error Message

Post by tomfid »

The subscript on QPD0 on the left side is vcd, and on the right side it's vc'd or vcd'. I'm not sure if the ' (prime) refers to differentiation or something else, but it's possible that the left and right side expressions are distinct things.
Post Reply