# ESI 6529 DIGITAL SIMULATION TECHNIQUES - PowerPoint PPT Presentation

1 / 5

ESI 6529 DIGITAL SIMULATION TECHNIQUES A Restaurant Example A RESTAURANT EXAMPLE

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

ESI 6529 DIGITAL SIMULATION TECHNIQUES

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

## ESI 6529 DIGITAL SIMULATION TECHNIQUES

A Restaurant Example

### A RESTAURANT EXAMPLE

Modify the restaurant problem in Example 5 of Lecture 3 to include waiters. After a table for the appropriate party size becomes available, a waiter picks up the customers from the waiting area and escorts them to the dinning area of the restaurant. Upon arriving at the dinning area, the waiter takes the food order (20 percent of the service time). The waiter then delivers the food order to the kitchen and returns to the waiting area. When the order is ready (80 percent of the service time), the same waiter is requested to take the food to the dinning area. After delivering the food to the customers, the waiter remains in the dinning area until another request is made. When the customers finish their meals, they make their way to the cashier on their way out.

Assume that the cashier and the waiting area in the same location. The waiter travels 100 feet per minute. Travel distances between the areas are as follows:

Simulate the system once with 3 waiters

### THE EXPERIMENT FILE: Restaurant2.EXP

BEGIN;

PROJECT, Restaurant 2, ISE;

ATTRIBUTES:PartySize:Waiter#;

VARIABLES:Door, 10000;

QUEUES:TableQ, CashierQ: WaiterQ: FoodQ;

RESOURSES:Table, 50:Cashier;

STATIONS: WaitArea: Dining: Kitchen;

TRANSPORTERS:Waiter, 3, DISTANCE(1), 100, WaitArea;

DISTANCE: 1, WaitArea-Dining-100, WaitArea-Kitchen-100, Dining-Kitchen-150;

COUNTERS:Lost Parties:Served Parties;

DSTATS:NR(Table),Number of busy tables:

NQ(TableQ),Number of waiting parties:

NR(Cashier)*100, Cashier Utilization:

NQ(CashierQ), Number of waiting for cashier:

NT(Waiter),Number of busy waiters;

REPLICATE, 1;

END;

### THE MODEL FILE: Restaurant2.MOD

BEGIN;

CREATE:EXPO(1.6), Door;

BRANCH, 1: IF, TNOW <= 240, Open: ELSE, Closed;

ClosedASSIGN:Door = 0;

DISPOSE;

OpenASSIGN:PartySize=DISC(.4,2,.7,3,.9,4,1.0,5);

QUEUE,TableQ, 5, Leave;

SEIZE:Table, (PartySize+1)/2;

QUEUE, WaiterQ;

REQUEST:Waiter(SDS, Waiter#), 100, WaitArea;

MOVE:Waiter, Dining;

DELAY:TRIA(14,19,24)*0.2;

MOVE: Waiter, Kitchen;

DUPLICATE:1, Food;

MOVE:Waiter, WaitArea;

FREE: Waiter;

DISPOSE;

### THE MODEL FILE: Restaurant2.MOD

FoodDELAY: TRIA(14,19,24)*0.8;

REQUEST: Waiter(Waiter#), 100, Kitchen;

MOVE: Waiter, Dining;

FREE:Waiter;

DELAY:NORM(24,5);

RELEASE: Table, (PartySize+1)/2;

QUEUE,CashierQ;

SEIZE:Cashier;

DELAY:NORM(1.5, .5);

RELEASE:Cashier;

COUNT:Served Parties;

DISPOSE;

LeaveCOUNT:Lost Parties;

DISPOSE;