Installation — business terrible  1 part
September 8th, 2015
Simulation is the process of replicating the real world based on a set of assumptions and conceived models of reality.
MonteCarlo simulation is required for problems involving random variables with known (assumed) probability distributions.
This method of simulation was started as an idea by Enrico Fermi in the 1930s. Stanislaw Ulam in 1946 first had the idea and later contacted John von Neumann to work on it, and he started to use this simulation in a secret project. After World War II this simulation was published in many papers as a simulation technique.
The MonteCarlo simulation technique is frequently used to verify results of analytical methods. Rushedi (1984) used the MonteCarlo simulation approach to obtain the first two statistical moments (mean, value, and standard deviation) of the failure mode expression of brittle and ductile frames and, consequently, a system safety index. Ayyub and Haider (1985) suggested advanced simulation methods for the estimation of system reliability.
Fellow et. al. (1993) used the MonteCarlo simulation program (МStar) to understand the load and resistance factor design (LRFD). Nikolaos (1995) used the MonteCarlo simulation to study the reliability of reinforced concrete members strengthened with carbonfiberreinforced plastic.
This method depends on simulating the case of study by its parameters, and each parameter will be represented by its probability distribution, mean, and standard deviation.
The simulation will have two parameters: a variable and uncertainty. For example, the length of the men in a country is a variable as it represents a normal distribution. But managing a project by time and cost is usually uncertain and is represented by a triangle distribution by knowing the minimum, maximum, and most likely.
So, the risk assessment for the cost estimate and the risk assessment for the project’s time through the PERT method also uses MonteCarlo simulation. If you want to predict the cost of a large
project, you should break it into parts, define the cost of each part, and add them together. As will be discussed concerning time management in chapter four, the project’s time schedule plan is also broken up into smaller activities and based on the PERT method.
Each random variable is described by its statistical parameters: mean, standard deviation, and type of distribution. The distribution type of the random variable is chosen among the different probability distributions provided by the program.
Figure (3.23) presents an overview of the MonteCarlo simulation technique. The input data for the variables will be a probability distribution and, after simulation, one obtains the outputs by the graphs and statistical data.
The simulation model contains all the input data of the deterministic parameters, the random variables, and the equations. The model will run for at least 10,000 trials, as in the following flowchart. The MonteCarlo simulation technique is simple and is presented in Figure (3.24).
The final output results in displays by software at the end of the simulation and contains the statistical parameters of the variable Z, describing the limit state equation of the cost and time.
After the whole trials are completed, this program will calculate and present the mean, standard deviation, and the statistical
Figure 3.23 Monte Carlo simulation. 
Figure 3.24 Flow chart for montecarlo simulation.
parameters. Also, it can provide the frequency distribution of the value of outcomes of Z and determine the probability of increasing the cost to the limit of the budget.
As shown in Figure (3.25), the input data for all the variable parameters is selected by choosing the probability, arithmetic mean, and standard deviation or coefficient of variation. After running the simulation, the output will be a probabilities distribution curve.
Then, run the random numbers as per the "Midsquare Method" (Von Neumann and Metropolis, 1940s), which produces pseudorandom four digit numbers:
1. Start with a four digit seed number.
2. Square the seed and extract the center most four digits.
(This is your sampling parameter.)
3. Use the sampling parameter as the seed for the next trial. Go to step 2.
4. Random number generators usually return a value between 0 and 1.
For any software you use to perform the simulation for the cost, time, or other risk criteria, the process can be summarized as follows.
____ ^____ 1 

f 

1 

Generate random numbers tor input cells 

1 
‘ 

Calculate entire spreadsheet 

s 
f 

Display results in an output chart 

t 

N 

Stop 
Figure 3.25 MonteCarlo simulation consequence.
From the deterministic model, obtain the value of the output and other parameters. Then store the data for this trial and repeat these steps again for 8,000 and 10,000 times, so you have 10,000 output for the variable, so can calculate the arithmetic mean and standard deviation. Then draw the distribution or histogram curve and the cumulative curve.