How to simulate a (warehouse) subscription order process with SimEvents?

2 views (last 30 days)

Hi all,

I would like to simulate an order and delivery process with SimEvents. Here the problem description:

Customer Z subscribes for a toothpaste. Warehouse W guaranties a free delivery 30 days after order was placed. If Z orders an additional item (regular shipping fees) within these 30 days the toothpaste will be delivered together with the additional item. Z oders randomly items, but always only one item at a time.

How can I determine the number of shippings (ratio between orders and shippings)?

Best

Answers (1)

Nikhil Vyas
Nikhil Vyas on 27 Apr 2016
For random orders by a customer, you may use the Event-Based Entity Generator block coupled with a Random Event Generator(Random Number -> Gateway). You can use a combination of flushable Queue-Server with a Single server to do the order to shipment conversion.
For determining the number of orders placed, enable the Number of entities departed(#d) in the block parameters for the initial entity generator block. Same goes for the Shipments server block.
In both of these blocks, It can be enabled by double clicking the block, going to statistics tab and selecting the appropriate checkbox.

Categories

Find more on Discrete-Event Simulation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!