Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)