Investigate whether or not my local petrol station would benefit, in the way of cutting waiting times, from having more fuel pumps open.

Authors Avatar

Decision and Discreet Coursework

Aim:

To investigate whether or not my local petrol station would benefit, in the way of cutting waiting times, from having more fuel pumps open.

By doing this I hope to be able to simulate opening enough pumps in order to create waiting times less than 1 minute, what I would be willing to wait at a petrol station for petrol.

The way in which I will do this is by collecting sufficient data from my local garage that would enable me to simulate 20 cars using the petrol station. The data of which I will need to collect to complete a simple simulation is:

Arrival Time of Each Car:

This will allow me to calculate an inter arrival time of which is needed to simulate the time in between cars arriving at my garage.

Arrival Time of Car n+1 – Arrival Time of Car n = Inter Arrival Time

n = number of car in order of arrival

This will be done for all of the cars of which I have collected data for. I will then group these figures in sensible ranges, of which I can refine later, to calculate the probability of each inter arrival event range occurring.

Length of Service of Each Car:

I have decided that the most accurate way of calculating length of service will be to record the time in between the customer exiting his/her vehicle and re-entering it.

Time Customer Re-enters Car – Time Customer Exits Car = Length of Service

 This length of time will be the length of service. By doing this for a sensible amount of time I will be again be able to group the figures of which I obtain for this data type and put them into necessary ranges to calculate the probability for each length of service event range occurring.

Probabilities:

To produce my simulation I had to show the probability of each likely event happening it terms of inter arrival times and length of service. I did this by for both groups of data splitting them into equal groups. To begin they were not to be very big, as that would not give me enough events able to occur, which would make the simulation not very accurate.

The data I collected for inter arrival times ranged from 144 seconds to that of 12seconds. To begin with I used ranges of 20 seconds to group the data, of which could give 8 different events. The time shown as the event would be that of the mid point for its group.

e.g 0-19 range, mid point = 9.5 seconds

I manually tallied each range up with the amount of data I had collected specifying that range. From the tallied ranges I could now work out the probability of each range/event occurring. I did this using the formula for each range as:

Car Tally of Range / Total Number of Cars * 100

By turning these percentages into decimals, I am able to generate a random number to determine what event will happen. Here to the left is the lookup table generated for inter arrival times and the raw data needed to produce it. (R.N = Random Number and I.A = Inter

Join now!

Arrival). The random number generated in the spreadsheet is looked up in this table and returns the statement in the ‘Event’ column for the one of which it is greater than solely in the ‘R.N >’ column. The ‘R.N >’ column was made by adding up the percentage for each event starting from 0 as the first event then adding Event 1’s percentage to it to get Event 2’s R.N and so on.

The same method was used for the Service Length lookup table, although service length data ranged this time from 34 – 315. So this time I ...

This is a preview of the whole essay