GithubHelp home page GithubHelp logo

zoebin / gg1sim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rileym/gg1sim

0.0 0.0 0.0 224 KB

A G/G/1 queue simulation estimating long-run mean queue length under different conditions.

Python 100.00%

gg1sim's Introduction

G/G/1 Simulation: Does the Inter-Arrival Distribution Affect Average Queue Length?

This is a G/G/1 queue simulation I wrote for a simulation class. The purpose of the exercise is to show how the choice of or assumptions about input distributions may significantly influence the metric in question. In our particular case that metric is long-run mean queue length, L, and the input distribution is the distribution of inter-arrival times.

I had learned basic python the week before this assignment and so took the exercise as an opportunity to further familiarize myself with python and object oriented python. Note too that we were not allowed to use any high level packages or routines in this assignment, e.g., no numpy, no scipy, and we had to generate our own random variables.

The simulation driver is simDriver.py.


####Simulation Details

  • We are trying to estimate the average queue length, L, for five different G/G/1 queues.
  • For all five queues the service times are generated by the sum of two independent uniform random variables (this distribution looks like a triangle).
  • The five inter-arrival distributions for the queues are as follows:
    • Exponential
    • Weibull – two instances: one for each of two parameter settings
    • Auto-correlated normal random variables – two instances: one with positive and one with negative correlation
  • The parameters are calibrated so that all five inter-arrival distributions have the same mean. Even so, – and demonstrating this is the point of the exercise – the differences in the shape of these distributions or their non-independence leads to very different estimates of L. That is, our metric of interest is sensitive to the choice of input distribution, so one ought to choose wisely.
  • The formal model behind this simulation is a "generalized semi-markov process" (GSMP) which is a stochastic process description of a discrete event system.

gg1sim's People

Contributors

rileym avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.