AgeQueueing
A queueing simulator implemented on Python
Install / Use
/learn @revenol/AgeQueueingREADME
AgeQueueing
A queueing simulator implemented on Python. It evaluates queueing performance metrics including Age-of-Information (AoI) under different scheduling policies in a Monte Carlo way.
The project includes:
- queueengine.py: the QUEUE class, including all kinds of queueing operations, such as arriving, waiting, serving, and departing.
- main.py: run this file, including setting queueing parameters, conducting different simulations, saving data and plotting curves.
Required packages
- Python 3.*
- numpy
- pandas
- matplotlib
What it can do
-
Evaluates performance metrics:
-
interval: arrival interval, departure interval
-
delay: waiting time, queue length
-
age of information: mean age, peak age, effective departing ratio
-
-
Scheduling polices are categorised based on
-
FCFS or LCFS
-
Preemptive or Non-Preemptive
-
Priority or Non-Priority: arrivals with different priorities
-
Size-based or not: SRPT (shortest-remaining-processing-time)
-
Age-based or not: SEA (shortest-expected-age) not available right now
-
-
Scheduling polices supported:
-
FCFS
-
FCFSPriority: FCFS + Priority
-
FCFSSRPT: FCFS + SRPT
-
FCFSSEA: FCFS + SEA
-
LCFS:
-
Pre-LCFS: LCFS + Preemptive
-
LCFSPriority: LCFS + Priority
-
LCFSSRPT: LCFS + SRPT
-
LCFSSEA: LCFS + SEA
-
How the code works
run the file, main.py
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
