bennypepper commited on
Commit
7a35e31
Β·
unverified Β·
1 Parent(s): b0734b5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +54 -2
README.md CHANGED
@@ -1,2 +1,54 @@
1
- # Queueing-System-Simulator
2
- An interactive queueing system simulator with real-time graphs, built with Python, Tkinter, and Matplotlib.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Ultimate Queueing System Simulator ⏱️
2
+
3
+ ![Python](https://img.shields.io/badge/Python-3.8+-blue.svg?logo=python&logoColor=white) ![Tkinter](https://img.shields.io/badge/GUI-Tkinter-lightgrey.svg) ![Matplotlib](https://img.shields.io/badge/Data_Viz-Matplotlib-orange.svg) ![NumPy](https://img.shields.io/badge/Math-NumPy-013243.svg?logo=numpy&logoColor=white)
4
+
5
+ An interactive, GUI-based Discrete Event Simulation (DES) tool designed to model, analyze, and optimize multi-server queueing systems. Built as a virtual laboratory for a Simulation Modelling course at Ma Chung University, this program allows users to run complex "what-if" scenarios to find the optimal balance between operational costs and customer waiting times.
6
+
7
+ ## πŸ“Œ Project Overview
8
+ Testing operational changes in the real world (like hiring more staff or altering service flows) is expensive and risky. This simulator uses the Discrete Event Simulation (DES) method to jump chronologically between key events (customer arrivals and departures), providing a highly efficient, industry-standard way to evaluate queue performance. It handles various models (M/M/c), priority balking, and detailed statistical reporting.
9
+
10
+ ## πŸ› οΈ Tech Stack & Libraries
11
+ * **Language:** Python
12
+ * **GUI Framework:** Tkinter
13
+ * **Data Visualization:** Matplotlib (Real-time graphing)
14
+ * **Data Processing:** NumPy, Collections, CSV
15
+
16
+ ## πŸš€ Key Features
17
+ * **Multi-Server & Priority Queues:** Simulate any number of parallel servers and toggle VIP customer priorities, separating standard FIFO logic into distinct VIP vs. Regular queues.
18
+ * **Cost Analysis:** Input abstract "Waiting Costs" and "Server Costs" to mathematically calculate the optimal trade-off between customer satisfaction and business overhead.
19
+ * **Flexible Data Input:** Supports manual entry, CSV imports, or automated randomized distributions (Exponential for arrivals, Normal for service times).
20
+ * **Real-Time Visualization:** Watch the system dynamically update with visual representations of idle/busy servers, queue lengths, and live line charts for Q(t) and B(t).
21
+ * **Statistical Replications:** Run the simulation hundreds of times automatically to generate a "Replication Report" featuring 95% Confidence Intervals (C.I. Half-Width) for rock-solid, data-driven decision making.
22
+ * **Comprehensive Exporting:** Export event logs, customer statistics, and final system reports to `.csv`, or save the real-time plots as `.png` images.
23
+
24
+ ## πŸ’» How to Run Locally
25
+
26
+ **1. Clone the repository:**
27
+ \`\`\`bash
28
+ git clone https://github.com/yourusername/ultimate-queueing-simulator.git
29
+ cd ultimate-queueing-simulator
30
+ \`\`\`
31
+
32
+ **2. Install dependencies:**
33
+ \`\`\`bash
34
+ pip install numpy matplotlib
35
+ \`\`\`
36
+
37
+ **3. Launch the Simulator:**
38
+ \`\`\`bash
39
+ python simulator.py
40
+ \`\`\`
41
+ *(Ensure your Python installation includes Tkinter, which is typically bundled by default on Windows/macOS).*
42
+
43
+ ## πŸ“Š Using the Simulator (Example Scenario)
44
+ To analyze whether adding a second barista to a cafe is cost-effective:
45
+ 1. Enter your arrival and service distributions on the left panel.
46
+ 2. Input your estimated *Waiting Cost* and *Server Cost*.
47
+ 3. Set "Number of Replications" to 100 and click **Run Replications**.
48
+ 4. Check the Replication Report tab for the Total System Cost and its 95% Confidence Interval.
49
+ 5. Change the "Number of Servers" from 1 to 2, rerun the replications, and compare the total costs to make your final business decision.
50
+
51
+ ## πŸ‘₯ Authors
52
+ * Benedict Michael Pepper
53
+ * Yudhistira Nalendra Aryadhewa Az-zhafir
54
+ * *Informatics Engineering, Ma Chung University (2023)*