Decision Making Based on the Monte Carlo Method (and Software Instruction Guide)

Part I: Design Stage

I.  Define the system objectives and list any requirements.

  1. The system objectives state the purpose of the design.
  2. Requirements include any task the system or design must perform as well as any constraints such as a budget or schedule.

II.  Define an option space or possible design configurations.

  1. Select a few options to analyze. Since an option can include an infinite number of choices, it is feasible to analyze the most likely choices. (Note: However, this process may lead to a sub-optimal choice.)
  2. Define the parameters of each option i.e. the numerical quantities that specify design elements.

Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example

·  Define the system objectives and list any requirements: Suppose you need to select the I-beam that best fulfills the following requirements:

o  Member is constructed from aluminum

o  I-beam is simply supported at both ends

o  I-beam is uniformly loaded with a distributed force equal to 3775 N/m

o  I-beam cannot deflect any more 0.60mm

The setup:

·  Parameters:

Part II: Evaluation Measures (EMs)

I.  Based on the design objectives and requirements, create a list of evaluation measures for your system.

a.  An evaluation measure is a numerical quantity that allows one to grade some aspect of the design.

b.  It is important that the evaluation measures are independent, meaning that two measures do not evaluate the same quality or a combination of the same qualities.

II.  Define the details of each evaluation measure.

a.  Is the EM deterministic or probabilistic?

  1. A deterministic EM is one whose values are fully expressed as one number. (For Example: The safety rating of a car is 4 stars out of 5.)
  2. A probabilistic EM is one whose values are expressed as a range. (For Example: The length of a beam can be 2 meters +/- 10 cm.)

b.  Result:

  1. If the EM is deterministic, determine if higher option values are more favorable.
  2. If the EM is probabilistic, also determine if higher option values are more favorable. Next, determine the risk inclination.
  3. There are 3 risk states, risk averse, risk neutral and risk seeking. After selecting a risk inclination determine the extent of the risk inclination, rho or “ρ.” If one is risk averse then ρ is positive and if one is risk seeking then ρ is negative, and if one is risk neutral then ρ= infinity. As a general scale for ρ, a value of 5 is moderate and a value of 1 is extreme. This value must then be de-normalized (multiplied by the range of the EM: High-Low). For further details reference the graphs below which display the affect of one’s risk inclination (rho) on the utility value:

Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example

List Evaluation Measures: The evaluation measures for this decision will include

·  Cost

·  Deflection

Evaluation Measure Description:

·  Cost is a deterministic EM since the price per beam will be used in the analysis. For cost a lower option value is more preferable.

·  Deflection is a probabilistic evaluation measure. Since there are tolerances in the beam’s dimensions, the performance of each beam needs to be simulated. For deflection a lower option value is more preferable.

o  For deflection this example will be risk averse with a rho=5.

______

CHECKLIST: Before proceeding be sure to have the following information:

þ  Options with parameters

þ  Evaluation Measures and details including:

o  Deterministic / Probabilistic

o  Value preference (are higher or lower option values more preferable?)

o  Risk Inclination

______

Part III: Evaluation Measure Details

I.  If an EM is probabilistic then that particular factor of the design needs to be modeled as a random variable. To complete this step a simulation must be performed to determine the distribution. To find the distribution of the EM:

a.  Open MATLAB and change the working directory to where EQUATION.M and LOOPY.M are saved.

b.  Open “EQUATION.M” and using this file define the variables that make up the equation which determines your EM. Then set the result vector, RV, equal to that equation. Be sure to save the file under a new, descriptive title. (YOURTITLE.M) Note: MATLAB is case-sensitive. It is important to note the order of the variables because the same order will be used in the simulation. See comments in EQUATION.M.

Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example

The equation to determine the deflection of the beam is (Youngs = Young’s Modulus and MomentI = moment of inertia)

Due to the complexity of this equation it will be broken down into two equation files. One will determine a distribution for MomentI since the moment of inertia is a value determined by multiple dimensions from the beam’s cross section. The second equation will compute the rest of the deflection equation as a distribution. Then both distributions will be combined which yields the deflection distribution.

Equation File One: Moment of Inertia

Equation File Two: Loading

______

c.  Run “LOOPY.” Loopy is the MATLAB program that models the variables defined in the Equation file as distributions using the Monte Carlo Method. You will be asked:

1.  “How many Variables?” The answer is equal to the number of variables previously defined in “YOURTITLE.M.” (In Loading.m, number of variables = 2)

2.  “How many Simulations?” 10,000 to 100,000 Monte Carlo simulations will return satisfactory results.

3.  “How many bins?” After each variable is simulated a histogram of that variable appears so that you can check that the variable was correctly modeled after the desired distribution. The “bins” refers to the number of bars plotted in the histogram. 50 bins will usually produce satisfactory results.

Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example

Below is a list of the prompts from “LOOPY”

______

Next, a menu bar of the available distribution types will appear. Select the desired distribution. Then “LOOPY” will prompt you to input information required to define that distribution. Enter this information and then press ENTER. A histogram of the random variable will appear. View the graph then press ENTER to continue modeling the remaining variables. After all simulations have been run, “LOOPY” will prompt you to type the name of “YOURTITLE.M.” In single quotes type the name of the equation file saved (without the ‘.M’) and then press ENTER. A final histogram of the result will be displayed for the option. Set the Option name to equal RV (Option1=RV) press ENTER.

Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example

For deflection you will need to run the loopy program twice for each option. For this example, the normal distribution will be used to model the variables. A normal distribution will ask you to input the mean and the standard deviation of your variable. The nominal value will be input as the mean and the +/- tolerance divided by two will be the value for the standard deviation. Thus, if you are simulating the length of the beam the mean value equals 3m and the standard deviation equals 0.02m or (0.04 / 2). (See values from page 2 for further details)

o  The first loopy run will be used to compute the moment of inertia for the beam. Follow the instructions and input the appropriate information. Next type “Moment1=RV;” and this will set the distribution of the moment of inertia equal to the title Moment1 or the moment of inertia for option 1.

o  Next run loopy again except use it to compute the load portion. After loopy is complete set “Load1=RV;” and this will set the load portion of the deflection equal to the title Load1 or Load of option 1.

o  Finally, type “Deflection1=Load1./Moment1;” and this step will complete the deflection equation thus returning a distribution for the deflection of the option. (See README_MATLAB for an explanation of the “.” operator.)

o  Type “hist(Deflection1,50);” and a histogram of the distribution will be plotted with 50 bins and it should look similar to:

______

d.  Perform the “NORMFIT” function on the simulated option. Using this syntax: [mu,sigma,muci,sigmaci] = normfit(RV,alpha), choose a confidence level (95% conf= 0.05=alpha); this function will return four items:

i.  mu: the mean of your sample distribution

ii.  sigma: the standard deviation of your sample distribution

iii.  muci: the max and min the mu is restricted to, dependant on your confidence level.

iv.  sigmaci: the max and min the sigma is restricted to, dependant on your confidence level.

For further details simply type “help normfit” at the MATLAB prompt.

Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example

Normfit Results for Option 1

Repeat this process again to obtain the deflection distribution and normfit information for the other options.

______

e.  Using the information from “NORMFIT” and your risk inclination chose a Certainty Equivalent for your option. The certainty equivalent is a pseudo expected value for a distribution that has been adjusted based on one’s risk inclination. For example, if the given distribution is for deflection and the mean is 1.0mm and less deflection is preferable, then the certainty equivalent for someone who is risk averse could be 1.3mm. Likewise, for the same distribution, if the person is risk seeking then his certainty equivalent may be 0.8mm. One way to determine the certainty equivalent is to use the muci values. If higher values are more preferable for the EM and you are risk averse then you might want to choose the lower of the two muci values to be on the safe side.

f.  Select a HIGH and a LOW limit for the evaluation measure. HIGH is the largest acceptable value for the EM and likewise LOW is the smallest acceptable value. This range must encompass all of your option scores. Any option that does not fall between the HIGH and LOW values may be discarded.

Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example

Continuing with Option 1 …

·  The Certainty Equivalent for deflection will be taken from the muci information. Since the example is risk averse the higher of the two muci values will be used as the certainty equivalent. Certainty Equivalent = 0.0005259m (Continue on and determine a CE for each option).

·  Select a HIGH and a LOW value for the evaluation measure

o  HIGH= 0.0006m

o  LOW= 0.00045m

In addition it should be noted that since Deflection is probabilistic, the software will allow you to use the standard deviation of the deflection as an evaluation measure as. In this example the standard deviation of deflection will be used as an evaluation measure since it is important for the distribution to be tightly packed around the mean.

______

II.  If an EM is deterministic:

a.  Select a HIGH and a LOW limit for the evaluation measure. HIGH is the largest acceptable value for the EM and likewise LOW is the smallest acceptable value.

Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example

For the cost evaluation measure:

·  Select a HIGH and a LOW value for the evaluation measure

o  HIGH= $130.00

o  LOW= $120.00

______

CHECKLIST: Before proceeding be sure to have the following information:

þ  For deterministic know the Evaluation Measure’s:

o  HIGH

o  LOW

þ  For probabilistic know the Evaluation Measure’s:

o  HIGH

o  LOW

o  Certainty Equivalent

______

Part IV: Determining Option Grades

I.  To determine the option grades, a MACRO for MS Excel will be used. Before proceeding, read the README_XL file for disclaimers.

  1. Begin by double-clicking on the Excel file “Decision Making Macro.”
  2. Next, go to the top tool bar and select: “Tools” à “Macro” à “Run Macro.”
  3. Select “CreateEMs” and click RUN.

Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example
  1. Follow the instruction boxes and input the necessary information. (Have the information from the previous “Checklists” on hand to expedite this process)
  2. Once complete, SAVE AS the file with a new name descriptive of your project.
  3. Go through the newly created EM sheets and fill in the score boxes shaded in blue. All boxes that are shaded in blue must be filled in for the later macros to work properly. (Any boxes shaded in green are optional and contain only reference information to benefit the user)You should note that the Macro allows you to use sigma (standard deviation) as an evaluation measure if the EM is probabilistic. Refer to Appendix I for further details. As you input values, the grade of the options should appear in the appropriate boxes.
  4. The Grade of an option is a number that takes into account the option score, your risk inclination, and the range of the option.
  5. For information on the exact formula used to compute the option grade, please reference appendix II.

Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example
  1. SAVE again.
  2. Once all the evaluation measure information has been entered, select the “Final” sheet.
  3. Inputting the weights of the evaluation measures into the blue boxes: You can choose to enter the weights yourself (arbitrarily) or you can use the weight macro to guide you along.
  4. Before proceeding, for any EM that you do not wish to include, put 0’s (zeros) in their weight columns.
  5. To run the weighting macro: “Tools” à “Macro” à “Run Macro.”
  6. Select “WeightCalc.”
  7. The Weight of an EM is a measure of how important that EM is with regard to the other EMs.
  8. The value of a weight is always between 0 and 1.
  9. The sum of the weights of all the EMs is equal to 1.
  10. Below are the types of weight elicitation techniques available in the macro:
  1. Direct Methods

a.  Each method follows these steps: