Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drvinceknight/shortmm1q
A repo to try and get a really short MM1 Q simulation in Python
https://github.com/drvinceknight/shortmm1q
Last synced: about 1 month ago
JSON representation
A repo to try and get a really short MM1 Q simulation in Python
- Host: GitHub
- URL: https://github.com/drvinceknight/shortmm1q
- Owner: drvinceknight
- Created: 2014-11-11T18:03:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-12T10:16:22.000Z (about 10 years ago)
- Last Synced: 2024-06-20T00:44:37.385Z (6 months ago)
- Language: Python
- Size: 332 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trying to simulate an MM1Q in as little lines of code as possible
We've got it down to 11 (thanks Harald!) lines which includes a 'docstring' at the top, a warmup period and an output of a mean wait (so if we can get it any shorter please try and keep that functionality).
Also, the code must be readable.A pull request would be awesome.
Here's a screenshot of the output showing a mean wait of .5 which is the theoretical value for an arrival rate of 2 and a service rate of 1:
![](screengrab.png)
Contributors:
- [Jason Young](https://github.com/JasYoung314)
- [Geraint Palmer](https://github.com/geraintpalmer)
- Vince Knight
- [Harald Schilly](https://github.com/haraldschilly)
- [Chris Rowlatt](https://github.com/crispy-dev)