Unit Errors

Use this forum to post Vensim related questions.
Post Reply
hakani
Member
Posts: 22
Joined: Mon Nov 13, 2023 11:52 am
Vensim version: PLE

Unit Errors

Post by hakani »

Hello
I used the numbers 30, 12 and 365 when making Month, Year and Day conversions. I think that's why I can't edit unit errors. What can I do for it?
Attachments
HERD POPULATION V5.mdl
(24.41 KiB) Downloaded 83 times
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Unit Errors

Post by Administrator »

I think you have more problems here.

Looking at "Bull", the equation should be simple. I'm not sure why you've got a PULSE TRAIN in there.

bull = integ("Bull 12-18 Growing" - deaths bull - saled bull, INITIAL BULL)

Then "deaths bull" should be measured in "number/month" (not number*number/month, bulls^2 does not make any logical sense) and the equation should be

deaths bull = bull * BULL MORTALITY / months per year

BULL MORTALITY = 0.1 (DMNL/year), I'm assuming this is the proportion of bulls that die each year.

This fixes the units for "deaths bull", but you will need to do this for all other rates in the 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
hakani
Member
Posts: 22
Joined: Mon Nov 13, 2023 11:52 am
Vensim version: PLE

Re: Unit Errors

Post by hakani »

Looking at "Bull", the equation should be simple. I'm not sure why you've got a PULSE TRAIN in there.

bull = integ("Bull 12-18 Growing" - deaths bull - saled bull, INITIAL BULL)
--------------------------------------------------------------------------------------------------------------------

PULSE TRAIN results in BULL calculation because male calves born with this delay should be BULL.
I thought
hakani
Member
Posts: 22
Joined: Mon Nov 13, 2023 11:52 am
Vensim version: PLE

Re: Unit Errors

Post by hakani »

The first birth begins at 24 months and occurs every 12 months.
Deaths and acquisitions happen every month, but our rate is annual.
and the transition to another higher age occurs every six months. Accordingly,

&&&&&

PULSE TRAIN(24, 0 , 12, 66 )*(+female births) PULSE TRAIN(0, 0 , 6, 66 )*(-Female Calf Growing) PULSE TRAIN(24, 0 , 12, 66 )*(-deaths female calves/12)
PULSE TRAIN(24, 0 , 12, 66 )*(-saleds female calf/12)

is it true ??
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Unit Errors

Post by Administrator »

If that is correct, it probably should be something like

"Bull 12-18 Growing" = PULSE TRAIN(Avarage Herd First Calving Month, 0 , Calving interval , Productive LifeCyce )

And the units should be number/month.
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
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Unit Errors

Post by Administrator »

I'd also advise you to take a look at this.
https://www.vensim.com/documentation/20395.html
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
Post Reply