unit error

Use this forum to post Vensim related questions.
Post Reply
Sara T
Junior Member
Posts: 18
Joined: Thu Jun 07, 2018 7:18 am
Vensim version: PLE

unit error

Post by Sara T »

Hello
I have a problem understanding unit check error. I don't understand Smooth error
I sent only a part of the model to you
  please guide me

Error in units for the following equation:
#demand rate>SMOOTH# =
INTEG( ( average stay of tourism
- #demand rate>SMOOTH# )
/ delay time ,
avarage stay of tourism )
#demand rate>SMOOTH# --> bed*day*tourists
avarage stay of tourism --> bed*day*tourists
delay time --> day*tourists

Analysis of units error:
Units missmatch in INTEG
( average stay of tourism
- #demand rate>SMOOTH# )
/ delay time
Has Units: bed*Year
avarage stay of tourism
Has Units: bed*day*tourists
Attachments
e.mdl
(4.94 KiB) Downloaded 184 times
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: unit error

Post by Administrator »

You are smoothing "avarage stay of tourism", which is measured in "Tourists*Day*Bed", so the smoothed value must also be measured in "Tourists*Day*Bed".
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
Sara T
Junior Member
Posts: 18
Joined: Thu Jun 07, 2018 7:18 am
Vensim version: PLE

Re: unit error

Post by Sara T »

Error continues even when I change smooth value unit...
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: unit error

Post by tomfid »

You also have delay time in units of tourists*day, which is not a unit of time.

Generally the internal errors in macros (delimited by #) are hard to diagnose. Better to start with the other errors at the bottom of the list of 8.
Post Reply