Active initial differences help

Use this forum to post Vensim related questions.
Post Reply
Nu_user
Junior Member
Posts: 6
Joined: Mon Apr 17, 2023 2:16 pm
Vensim version: PLE+

Active initial differences help

Post by Nu_user »

Forum mates,
I'm working with a simple model to simulate the dynamics of workgroup populations that have different recruitment and training times. The results are coherent and valid when I run the simulation, but I keep getting the 'DIFFERENCES IN ACTIVE INITIAL' message.
I'm attaching the model so you can see the message. I've tried several approaches, but I can't figure it out.
I kindly ask for your help, please.
Attachments
active_initial_error.mdl
(3.68 KiB) Downloaded 68 times
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Active initial differences help

Post by Administrator »

You can probably ignore that as it's coming from the random number generator.

It would be good to do the following to your model.

1. Most important, add units to your model.

2. It's bad practice to next functions in the way you are doing so in "Ingresos a plantel OSPC" (and "Tiempo de ingreso OSPC"). Remove things like DELAY1 in here and put them in a separate equation and give it units.
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: Active initial differences help

Post by tomfid »

The warning arises because the random draw differs between the initialization step and the first dynamic time step.

However, since this is not an ACTIVE INITIAL variable, I don't think it should be reporting this. I think the trigger is, as Admin suggests, that there's too much nesting in:

Ingresos a plantel OSPC=INTEGER(ABS(DELAY1(ABS(Diferencia con plantel óptimo de OSPC), (Tiempo de ingreso OSPC+Tiempo para entrenamiento y obtención de permisos y licencias de plantel OSPC ))))

This should be broken up into several equations to reduce the complexity. Currently you have in effect,

y = INTEGER(ABS(DELAY1(ABS(X),t))))

The ABS are redundant, so you could make this:

y = DELAY1( ABS(x), t )
z = INTEGER( y )

This would likely eliminate the warning, though in the meantime you can ignore it safely.

I agree that units are essential.
Nu_user
Junior Member
Posts: 6
Joined: Mon Apr 17, 2023 2:16 pm
Vensim version: PLE+

Re: Active initial differences help

Post by Nu_user »

Thank you for your expert feedback, I will implement the suggested changes
Post Reply