DELAY CONVEYOR not working as expected

Use this forum to post Vensim related questions.
Post Reply
bppro
Junior Member
Posts: 14
Joined: Wed Nov 06, 2013 2:06 pm
Vensim version: DSS

DELAY CONVEYOR not working as expected

Post by bppro »

Hi,

Could someone please take a look at my model and explain to me the ouflow behavior?

I was expecting to see CV to ouflow between time=0 and time=10 at a rate of 1. That is what happened. At time=10, I also thought the other components would start to outflow. But what I am observing is that all the components (different type of cars in my example) start to outflow at time=0.

I have the following syntax in my outflow variable :

DELAY CONVEYOR(sales[V], LIFETIME, 0, INIT PROFILE[V], 10, LIFETIME),

Where [V] is a subscript for five type of cars.

From this, I expected that only the cars already on the conveyor would outflow before the delay time LIFETIME(=10). The only cars already on the conveyor at the start of the simulation should be the CVs distributed according to the INIT PROFILE (a flat distribution). Their number equals 10 at the start of the simulation, as per the initial value of the stock variable 'Cars'.


Thank you very much for your time,
BP
Attachments
Ford (2010)_Chap16_FeebateProgram.mdl
(2.86 KiB) Downloaded 260 times
gwr
Senior Member
Posts: 209
Joined: Sun Oct 04, 2009 8:40 pm
Vensim version: DSS

Re: DELAY CONVEYOR not working as expected

Post by gwr »

Hi BP,

I noticed that in the conveyor equation

Code: Select all

DELAY CONVEYOR(sales[V], LIFETIME, 0, INIT PROFILE[V], 10, LIFETIME)
you have set the initial amount in the conveyor to be 10 units. Note, that this is a vector equation so you have set the total to be 10 units for each of the vehicle types in V. That is not what you probably want and you should make the initial amount in the conveyor a separate variable set to {10,0,0,...} .

Kind regards,

Guido
Administrator
Super Administrator
Posts: 4605
Joined: Wed Mar 05, 2003 3:10 am

Re: DELAY CONVEYOR not working as expected

Post by Administrator »

All I've done here is change the equation for "Retired" to

Code: Select all

DELAY CONVEYOR(sales[v], LIFETIME, 0, INIT PROFILE[v], INITAL CARS[v], LIFETIME)
It seems to work ok now. Can you let us know if this is what you are expecting?
Attachments
Ford (2010)_Chap16_FeebateProgram MODIFIED.mdl
(2.81 KiB) Downloaded 270 times
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
bppro
Junior Member
Posts: 14
Joined: Wed Nov 06, 2013 2:06 pm
Vensim version: DSS

Re: DELAY CONVEYOR not working as expected

Post by bppro »

Many thanks to you both!

Indeed, the model now behaves exactly how I thought it should. I realize subcripts require extra attention!

Have a good day,
BP
Post Reply