Presentation is loading. Please wait.

Presentation is loading. Please wait.

EASTERN MEDITERRANEAN UNIVERSITY FACULTY OF ENGINEERNG Department of Industrial Engineering IENG461 System Modeling and Simulation Course Fall 2012-2013.

Similar presentations


Presentation on theme: "EASTERN MEDITERRANEAN UNIVERSITY FACULTY OF ENGINEERNG Department of Industrial Engineering IENG461 System Modeling and Simulation Course Fall 2012-2013."— Presentation transcript:

1 EASTERN MEDITERRANEAN UNIVERSITY FACULTY OF ENGINEERNG Department of Industrial Engineering IENG461 System Modeling and Simulation Course Fall 2012-2013 Laboratory Session 01

2 Open Microsoft office> Microsoft Excel File> New> Blank Workbook

3 IF FUNCTION Formula: =if(condition,expression1,expression2) TRUEFALSE Example1:

4 Write the formula in C2

5 Enter and drag outside selection to extend series.

6 A NESTED IF FUNCTION Formula: =if(condition1,expression1,IF(condition2,expression2,expression3)) Example2:

7 Write the formula in C2

8 Enter and drag outside selection to extend series.

9 Using an AND condition in an IF function Formula: =if(AND(condition1,condition2),expression1,expression2) Both TrueAny of them is wrong Example3:

10 Write the formula in C2

11 Enter and drag outside selection to extend series.

12 Using an OR condition in an IF function Formula: =if(OR(condition1,condition2),expression1,expression2) At least one TrueBoth wrong Example4:

13 Write the formula in D2

14 Enter and drag outside selection to extend series.

15 Using LOOKUP Function LOOKP tables are used when you want to compare a particular value to a set of values, and depending on where your value falls, assign a given answer. Formula: =VLOOKUP(lookup value, table_arrey, col_index_num, [range lookup]) Example5:

16 Write the formula in G3

17 Enter and drag outside selection to extend series.

18

19

20 Example6: Lets say you want to assign letter grades to students based on a pre-spesified scale, which is shown in the following table.

21

22 VLOOKUP Vertical Lookup HLOOKUP Horizontal Lookup HLOOKUP Example Example7: Using HLOOKUP function of excel, find matching departments of the following instructors:

23

24 Example8: Power Example Formula: =POWER(number,power)

25

26 Mod Example Example9: Formula: =MOD(number,devisor)

27

28 Countif Example Example9: Formula: =Countif(range,criteria)

29

30 Random Number generation Formula: =RAND()*(b-a)+a Random number between a and b When you use above formula each time that you open excel the generated random numbers will change. To stop this automatic change you should do following adjustment: File>Option>Formulas>Manual> remove Recalculate thick> OK

31 Lab HOMEWORK#1: A small grocery has only one checkout counter. Customers arrive at this checkout counter at random from 1 to 9. each possible value of inter-arrival time has the different probability of occurrence as shown in table 1 below. The service times vary from 1 to 6 minutes with the probabilities shown in table 2. the problem is to analyze the system by simulating the arrival and service of 20 customers by using simulation table. Time Between Arrivals (minutes)ProbabilityCumulative ProbabilityRandom-Digit Assignment 10.12 20.225 50.13 70.225 80.14 90.16 Table1. Distribution of time between arrivals

32 Service Time (minutes)ProbabilityCumulative ProbabilityRandom-Digit Assignment 10.1 20.2 30.3 40.25 50.1 60.05 Table2. Service Time Distribution The random digits between arrivals (3 digitsis needed) and service times (2 digits is needed) are going to putted in table 3 and 4 respectively. CustomerRandom digitsCustomerRandom Digits 111 212 313 414 515 616 717 818 919 1020 Table3. Random digits for time-between-arrivals determination

33 CustomerRandom digitsCustomerRandom Digits 111 212 313 414 515 616 717 818 919 1020 Table4. Random digits for service time determination Conduct a simulation of the above system by using EXCEL and find the following performance measures related with the system: The average waiting time for a customer and probability that a customer has to wait. The average service time and average inter-arrival time. The average time a customer spends in the system. The average waiting time of those who wait.

34 The End


Download ppt "EASTERN MEDITERRANEAN UNIVERSITY FACULTY OF ENGINEERNG Department of Industrial Engineering IENG461 System Modeling and Simulation Course Fall 2012-2013."

Similar presentations


Ads by Google