Skip to content

Latest commit

 

History

History
 
 

simulation-with-simpy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Simulating Real-World Processes With SimPy

Corresponding code for "Simulating Real-World Processes With SimPy."

Running the Script

The file simulate.py contains the script that mimics the tutorial code. You can execute the code by running python3 simulate.py from the directory that contains the file.

Here is some sample output:

$ python3 simulate.py
Input # of cashiers working: 1
Input # of servers working: 1
Input # of ushers working: 1
Running simulation...
The average wait time is 42 minutes and 26 seconds.