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

1 次查看(过去 30 天)

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

回答(1 个)

Nikhil Vyas
Nikhil Vyas 2016-4-27
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.

类别

Help CenterFile Exchange 中查找有关 Discrete-Event Simulation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by