simulation prepared by amani salah al-saigaly supervised by dr. sana’a wafa al-sayegh university...

18
Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Upload: margery-bishop

Post on 30-Dec-2015

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

SimulationPrepared by

Amani Salah AL-SaigalySupervised by

Dr. Sana’a Wafa Al-Sayegh

University of Palestine

Page 2: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Simulation Meaning & Purpose of Simulation Why Use Simulation? Characteristics of the process of simulation Simulation & Optimization Simulation Procedures Monte Carlo Simulation Technique Application Examples.

Page 3: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Meaning & Purpose of Simulation

Simulation is a quantitative approach, using a model, adopted for the purpose of verification, by appropriate experimentation, in terms of the adjustability and agreeability of the circumstantial facts of the real phenomenon to the assumed model.

Hence the process of simulation refers to evolving an artificial environment to cater to a real life situation .

in this respect, simulation can be termed as imitation just like the method of mimicry that may be adopted by a person to imitate the voice or action of another person.

Page 4: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Con… It cannot be considered as the best standard, an ideal

or precise technique, but only a procedure of describing a situation through an artificial, imitative procedure.

Page 5: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Why Use Simulation?Experimental arm of operations research. No optimization method available Optimization algorithm takes too long Run program to simulate system system too big or complicated.

Page 6: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Characteristics of the process of simulation

The following are the Characteristic features of the process of simulation:

To begin with, a given problem has to be clearly stated with explicit objectives.

In accordance with the defined problem and its objectives, an appropriate model has to be devised.

It is necessary to verify the devised model through repeated experimentation.

The result of the experiments should be evaluated to ascertain the appropriateness of the simulation process.

The simulation model can be either mathematical, physical.

Page 7: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Con… It is absolutely necessary to collect data pertaining to the

defined problem before starting the process of simulation. The model developed should be capable of providing

appropriate results for decision making. A simulation model can be deterministic, in which case, the

parameters are determined and constant. There may be cases where models may be of astochastic type

where the parameters are subject to variation in a random manner. This would necessitate a number of iterations for identifying the exact nature of the model.

Page 8: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Simulation & OptimizationOptimization Finds optimal answer Is a calculation

Monte Carlo Simulation Finds feasible answer Is an experiment.

Page 9: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Basis of SimulationExperimental arm of operations research. Set up a mathematical model of a system Write computer program Develop animation routines (if required) Run program to simulate system

Page 10: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Simulation Procedures When in a given situation, the elements of chance prevail then

the process can be covered under the probability technique. In such random behaviour situations, the method of Monte Carlo explained below can be used for dependable results.

Monte Carlo Simulation Mean: is a technique that involves using random numbers and probability to solve problems, A problem solving technique used to approximate the probability of certain outcomes by running multiple trial runs, called simulations, using random variables. 

Page 11: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Monte Carlo Simulation Technique This technique is useful for predicting the nature of behaviour of a

system Monte Carlo’s Simulation procedure is essentially based on the element of chance. It is therefore called ‘Probabilistic Simulation’ .

Accordingly, the data involved in a problem is simulated by using random number generators.

Hence, the basic characteristics of Monte Carlo Simulation Technique are:

- supposition of a model in the form of a probability distribution of the concerned variable .

- it is a mechanical process based on random number generators. The procedure of simulation on the basis of Monte Carlo Simulation

Technique, can be explained with the help of the following examples.

Page 12: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Application The process of simulation can be applied to a vriety of

problems that are subject to quantification and estimation. The technique of simulation can be advantageously used

in inventory control policies. In matters of financial planning can be applied. It is a very useful tool that is popularly and reliably used

for solving business problems. It is applications in decision making problems is of much

significance especially in avoiding unexpected risk. computer software packages can also be evolved suitably.

Page 13: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Example 1 A milk dairy’s records of sales of one liter milk packets

during 100 days are as under:

Demand891011121314151617

Number of Days591015138111487

Using the following random numbers simulate the demand for the first 15 days.

Solution:

Table 1

Demand891011121314151617Probability(n/100).05.09.10.15.13.08.11.14.08.07

Random23641896714654811817539284352

Page 14: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Con… Table 2DemandProbabilityCumulative

Probability Random Number

IntervalRandom Number

8.05.0500-04-

9.09.1405-138,11

10.10.2414-2323,18

11.15.3924-3828

12.13.5239-5164,39,43

13.08.6052-5954,52

14.11.7160,7064

15.14.8571-8471,81.75

16.08.9385-92-

17.07.10093-10096

Page 15: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Con… The following is the schedule of simulated demand for the first 15 days,

in the order of the given random number.

Day123456789101112131415

Demand1014101715121399151512111213

Form Table 2: read the demand against each random number.

Page 16: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Example 2 In the first year M.Com. Class of a certain commerce college, the first

lecture starts at 9 a.m. ,Following is the probability distribution regarding number of students who are late comers for the first lecture each day.

NO. of Student coming late

0510152025

Probability0.350.300.200.100.05

Using the following sequence of random number, simulate the pattern for next 12 days and find average number of students coming late per day.

Random952312659561860292454448

Page 17: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Solution:

NO. of Student coming

late

ProbabilityCumulative Probability

Random Number Interval

Random Number

05.35.0.3500-3423,12,02

10.30.6535-6461,45,44,48

15.200.8565-8465

20.100.9585-9486,92

25.05

Quiz:

Complete the blanks in the table above and simulate the pattern for next 12 days and find average number of students coming late per day.

Page 18: Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine

Solution:

NO. of Student

coming late

ProbabilityCumulative Probability

Random Number Interval

Random Number

05.35.0.3500-3423,12,02

10.30.6535-6461,45,44,48

15.200.8565-8465

20.100.9585-9486,92

25.051.0095-9995,95

Day123456789101112NO. of Student

coming late250505152510200520101010

The following is the simulate the pattern for next 12 days

Total number of Student coming late =160

Average number of late comers= 160/12=13 approximately per day.