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

Connected

Exercise

Car assembly line: adding deterministic events with SimPy

This exercise focuses on deterministic processes using SimPy.

Let's build the same car assembly line model using the SimPy package.

We will focus on adding the same deterministic events using SimPy methods. Recall that you did your research and came up with 15 hours for welding and painting and 24 hours for the assembly of parts and testing.

The SimPy library has been imported for you.

Instructions

100 XP
  • Complete the code to clock-in the duration of process 1.
  • Complete the code to clock-in the duration of process 2.
  • Create a SimPy environment and store it in a variable named env.
  • Run the model until SIMULATION_TIME.