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

Connected

Exercise

Car Assembly line: adding non-deterministic events with SimPy

This exercise focuses on non-deterministic processes using SimPy.

You'll modify the SimPy version of your car assembly line model, focusing on adding the same deterministic events using SimPy methods.

Recall that "Welding and painting" take an average of 15 hours complete, but that duration varies by five hours (up or down). In turn, "Assembly of parts and testing" took an average of 24 hours to finish, but that duration varies by six hours (up or down)

The SimPy library has been imported for you.

Instructions

100 XP
  • Clock-in the duration of the process "Welding and painting", taking into account the new information about its variability using the method random.randint().
  • Clock-in the duration of the process "Assembly of parts and testing_", taking into account the new information about its variability using the method random.randint().