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):
processes
: Dictionary containing the information about the processessimulation_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
.
This exercise is part of the course
Discrete Event Simulation in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Add the new key-value pair to the processes dictionary
processes["____"] = ____
# Assign the simulation time
simulation_time = ____
# Run the model
time_all = ____(____)