BaşlayınÜcretsiz Başlayın

Modeling a car production line: Create and run the model

In this exercise, you'll continue to work on the car production line example from the previous exercise.

Now that you have created the generator car_production_line_gen(), which clocks in and yields the duration of processes involved in the production line ("welding and painting" and "assembly and testing"), it's time to run your SimPy model!

Bu egzersiz

Discrete Event Simulation in Python

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Build your SimPy model environment with the name env.
  • Add the process represented by your generator function to the SimPy environment.
  • Run the model for 1000 hours.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Create your SimPy environment
____ = simpy.____()

# Add the process to the environment
env.____(____)

# Run your discrete-event model
env.run(____=____)
Kodu Düzenle ve Çalıştır