1. Learn
  2. /
  3. Courses
  4. /
  5. Discrete Event Simulation in Python

Connected

Exercise

Mathematical models: incorporating key processes

You have created the dictionary processes shown below that contains information about the steps involved in a supply-chain operation of a company that produces mobile phones.

processes = {
    "Sourcing raw material":  5,
    "Transport of raw material": 1,
    "Manufacturing parts": 3,
    "Assembling parts": 2,
    "Selling products": 3,
}

Your model is stored in a function named discrete_model_build_phone() and simulates your production line by accounting for the processes described in the dictionary. The input arguments of the model are (in order):

  1. processes: Dictionary containing the information about the processes
  2. simulation_time: Duration of the run.

The time in the model is in days.

The package Maptlotlib.pyplot has already been loaded for you as plt.

Instructions 1/3

undefined XP
    1
    2
    3
  • You realized you forgot to include the "Delivering products" process in your processes dictionary, so add it, considering this process usually takes about 1.5 days.
  • Assign variable simulation_time with the simulation period of 1 year, expressed in days.
  • Call the model, pass the correct arguments, and run it.