question

Rex R. B avatar image
0 Likes"
Rex R. B asked tannerp commented

Demand of sink based on a statistical distribution function

Hi! I'm trying to simulate a supply chain problem where a shipment comes in bulk (say 25MT/shipment) with inter-arrival time based on some statistical distribution function and delivered in smaller batches (50kg/batch). The deliveries will also follow a distribution function based on historical data.

I modeled the shipment by triggering the source on creation to label the flow item "shipment" with 25000 value and use the separator to split it into 500 pieces with "delivery" label of 50 on exit. My problem arise when I want to incorporate a distribution function for the demand on the sink.

By the way, the simulation runs for one year and the time increments is in days. I will really appreciate any help.

Attached is a sample of my model.

test-daily.fsm

Thanks,

Rex

FlexSim 19.1.0
statistical distributionsinksupply chaindemand
test-daily.fsm (21.2 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Phil BoBo avatar image Phil BoBo ♦♦ commented ·

What do you want the sink to do?

Pull one of those items every X days where X is sampled from a distribution?

If so, then you could model the sink's demand with a Processor instead of trying to use Pull on the sink. Just put a Processor between the queue and the sink with the amount of time between demand for each delivery.

1 Like 1 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

A sink isn't able to pull from the model by time. You can close the output of the queue and create events by sending messages to the queue. Those messages open the output of the queue. On Exit of the queue or On Entry of the sink you close the output of the queue again, if the amount of items of the period is reached.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.