MulaiMulai sekarang secara gratis

Logistics eCommerce model: Model modularity

Let's take the example of the e-Commerce model used before, where we have three main groups of processes:

  1. Managing requests
  2. Packaging
  3. Shipping & delivery

To ensure the model is modular and processes can be easily added and removed, processes have been defined in separate functions and generators: def process_1_manage_requests(): def process_2_packaging(): def process_3_shipping_delivery():

Once these process generators have been defined, the generator def generator_all_processes(env) has been created to (1) call each of the individual process generators and (2) clock in their duration in chronological order.

Latihan ini adalah bagian dari kursus

Discrete Event Simulation in Python

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga