Skip to content

Stochastic simulations using Octave for normal multivariate and queueing theory problems.

License

Notifications You must be signed in to change notification settings

brenoslivio/Stochastic-Simulations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Stochastic simulations

Stochastic simulations using Octave for normal multivariate and queueing theory problems.

Table of Contents

  1. About The Project
  2. Getting Started
  3. License
  4. Acknowledgements

About The Project

The projects are intended for making stochastic simulations using Octave for normal multivariate and queueing theory problems.

We have a M/M/c/K/FIFO queue, with arrival rate lambda and service rate mu. Also, queue is finite with k. How many servers do we need to the expected waiting time for a client (coming from a long operation time) be less than 4 minutes?

We will have to make a transition rate matrix with the following idea:

With the simulation we can see 2 servers are more than enough.

Decide if it is worth the $100.00 upgrade to play a match in which you attempt 100 'shots', and each ball that lands in the hole generates $2.00.

Make a thousand simulations of the "100-stroke match" for the robot without upgrade and calculate the average profit, then repeat for the robot with upgrade. Compare the profits and decide if it is worth the upgrade to play a match.

The strokes' position follows a normal multivariate distribution which we have the following covariance matrices:

Robot without upgrade -

Robot with upgrade -

The hole is the polygon with the following coordinates:

Without the upgrade a 100-stroke could be like this:

And with the upgrade:

Making the simulation we can see the upgrade is too costly, and it's better to not do it, having a better profit.

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

Octave with the Statistics Package from Octave Forge.

Installation

  1. Clone the repo
    git clone https://github.com/brenoslivio/Octave-Simulations.git
  2. Run with Octave the proper codes.

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgements

About

Stochastic simulations using Octave for normal multivariate and queueing theory problems.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages