Mulai sekarangMulai gratis

Manage taxi company: examine results

Now that you have successfully created your model in the previous exercise, let's run it and examine the results. Recall that time in the model is in minutes.

What is the average time it takes for a passenger to be dropped-off since they request a taxi?

You may need to re-run the script in the console.

random.seed(42)
env = simpy.Environment()
taxis = simpy.Resource(env, capacity=10)
env.process(order_taxi_ride(env, taxis))
env.run(until=8*60)
plot_waiting_times()

Latihan ini merupakan bagian dari kursus

Discrete Event Simulation in Python

Lihat Kursus

Latihan interaktif langsung

Ubah teori menjadi aksi dengan salah satu latihan interaktif kami

Mulai latihan