Page 1 of 1

unit error

Posted: Thu Jun 28, 2018 11:49 am
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

Re: unit error

Posted: Thu Jun 28, 2018 12:04 pm
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".

Re: unit error

Posted: Thu Jun 28, 2018 12:18 pm
by Sara T
Error continues even when I change smooth value unit...

Re: unit error

Posted: Thu Jun 28, 2018 12:53 pm
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.