ComeçarComece de graça

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.

Este exercício faz parte do curso

Discrete Event Simulation in Python

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Add the new key-value pair to the processes dictionary
processes["____"] = ____

# Assign the simulation time
simulation_time = ____

# Run the model
time_all = ____(____)
Editar e executar o código