版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Monte-Carlo Simulation with Crystal Ball用水晶球软件进行蒙特卡洛模拟To run a simulation using Crystal Ball:1. Setup Spreadsheet1设定数据表Build a spreadsheet that will calculate the performance measure (e.g., profit) in terms of the inputs (random or not). For random inputs, just enter any number.通过建立数据表可以对输入数据(随机的,非随
2、机)进行评估。随机数据的输入,输入任意数即可。2. Define Assumptionsi.e., random variablesDefine which cells are random, and what distribution they should follow.2定义假设的前提例如,随机变量确定那些单元格的数据时随机的,这些数据应该服从什么样的分布3. Define Forecasti.e., output or performance measureDefine which cell(s) you are interested in forecasting (typically
3、 the performance measure, e.g., profit).3预测结果的确定例如,数据输出或者性能的测定确定哪些单元格的数据是你想预测的(典型的性能指标,例如,利润)4. Choose Number of TrialsSelect the number of trials. If you would later like to generate the Sensitivity Analysis chart, choose “Sensitivity Analysis” under Options in Run Preferences.4. 选择试验的次数选择试验的次数。如果
4、要生成敏感度分析图表,选择优先运行下的“敏感度分析”5. Run SimulationRun the simulation. If you would like to change parameters and re-run the simulation, you should “reset” the simulation (click on the “Reset Simulation” button on the toolbar or in the Run menu) first.运行模拟运行模拟。如果要改变参数重新进行模拟,需要首先重置模拟(点击运行菜单工具栏或者运行菜单下的“重置模拟”按
5、钮)。6. View ResultsThe forecast window showing the results of the simulation appears automatically after (or during) the simulation. Many different results are available (frequency chart, cumulative chart, statistics, percentiles, sensitivity analysis, and trend chart). The results can be copied into
6、 the worksheet.查看结果在模拟最后或者运行的过程中,预测窗口会自动显示模拟的结果。可以获得不同的结果(频率图,累计图,统计图,百分比图,模拟分析图和趋势图),结果可以复制到工作表中。Crystal Ball Toolbar:(水晶球的工具栏)DefineDefineRunStartResetForecastTrendAssumptionsForecastPreferencesSimulationSimulationWindowChart(确定假设)确定预测结果 优先运行 开始模拟 模拟重置 预测窗口 趋势图Walton Bookstore Simulation with Crys
7、tal Ball水晶球在Walton书店模拟中的应用Recall the Walton Bookstore example: It is August, and they must decide how many of next years nature calendars to order. Each calendar costs the bookstore $7.50 and is sold for $10. After February, all unsold calendars are returned to the publisher for a refund of $2.50 pe
8、r calendar. Suppose Walton predicts demand will be somewhere between 100 and 300 (discrete uniform).回想Walton书店的例子。在八月份,书店需要确定订购的明年的日历的数量。单个日历的进价是7.5美元,售价是10美元。二月份之后,所有未售的日历将会以2.5美元的价格退还给出版商。假设Walton 日历的销售量在100300之间(离散型均匀分布)Demand = d Uniform100, 300Order Quantity= Q (decision variable)Revenue= $10 *
9、 Min(Q, d)Cost= $7.50 * QRefund= $2.50 * Max(Qd, 0)Profit= Revenue Cost + Refund需求量= d Uniform100, 300订购量= Q (随决定变化) 收入 = $10 * Min(Q, d) 成本 =$7.50 * Q 退款 = $2.50 * Max(Qd, 0)利润 =收入-成本+退款Step #1 (Setup Spreadsheet)第一步(制作电子表格)Walton Bookstore Simulation with Crystal Ball用水晶球对Walton书店进行模拟Step #2 (Defi
10、ne Assumptionsi.e., random variables)第二步(定义假设-例如,随机变量)Select the cell that contains the random variable (B17) color code (blue):选择包含随机变量的单元(B17)色标(蓝色)and click on the “Define Assumptions” button in toolbar (or in the Cell menu):、点击在工具栏中(单元格菜单)的“定义假设”按钮选择分布类型Select type of distribution:提供分布的参数Provide
11、 parameters of distributions: Walton Bookstore Simulation with Crystal BallStep #3 (Define Forecasti.e., output)第三步(确定预测例如,输出量)Select the cell that contains the output variable to forecast (F17):选择包含输出变量的单元格进行预测(F17)点击工具栏(单元格菜单)中的“确定预测”按钮click on the “Define Forecast” button in toolbar (or in the Ce
12、ll menu),在确定预测对话框中输入and fill in the Define Forecast dialogue box.Step #4 (Choose Number of Trials)第四步(选择试验的次数)Click on the “Run Preferences” button in toolbar (or in the Run menu):点击工具栏(或者运行菜单)中的“优先运行”按钮然后选择运行的次数并运行and select the number of trials to run.Walton Bookstore Simulation with Crystal BallS
13、tep #5 (Run Simulation)第五步(进行模拟)Click on the “Start Simulation” button in toolbar (or Run in the Run menu):点击工具栏(或者运行菜单栏)中的“开始模拟”按钮Step #6 (View Results)第六步(查看结果)可以通过不同的方法观察模拟结果(频率图,累计图,统计图及百分比图)。在预测窗口中的查看菜单中进行不同的选择。The results of the simulation can be viewed in a variety of different ways (frequenc
14、y chart, cumulative chart, statistics, and percentiles). Choose different options under the View menu in the forecast window.The results can be copied into a worksheet or Word document (choose Copy under the Edit menu in the simulation output window.结果可以复制到工作表或者Word文档中(选择模拟输出窗口中编辑菜单下的复制)Using Trend
15、Charts to Find the Impact of Order Quantity on Potential Profit用趋势图找到订货量对利润的影响Define several forecast cells (G14:G18) for several possible order quantities (Q=100, 150, 200, 250, 300). Use the same random order quantity for each to compare them more equally (i.e., one assumption cell for demandC14wi
16、th the rest set equal to C14).针对不同可能的订货量(Q=100, 150, 200, 250, 300),定义一些预测单元格(G14:G18),为了更为公平的对比,每次都使用相同的随机订货量After running the simulation, choose “Open Trend Chart” in the Run menu. This chart gives “certainty bands” for the forecast cells. 10% of the time, the project duration will fall within the
17、 inner band (light blue), 25% of the time within the 2nd band (red), 50% of the time within the third band (green), and 90% of the time within the outside band (dark blue).运行模拟之后,选择运行菜单下的“打开趋势图”。趋势图针对预测单元格给出了确定的频带。项目执行期间有10%的几率位于内带(浅蓝色),25%位于第二带(红色),50%位于第三带(绿色),90%的几率位于外带(深蓝色)。Project ManagementGlo
18、bal Oil工程项目管理环球石油Global Oil is planning to move their credit card operation to Des Moines, Iowa from their home office in Dallas. The move involves many different divisions within the company. Real estate must select one of three available office sites. Personnel has to determine which employees fro
19、m Dallas will move, how many new employees to hire, and who will train them. The systems group and treasurers office must organize the new operating procedure and make financial arrangements. The architects will have to design the interior space, and oversee needed structural improvements. Each site
20、 is an existing building with sufficient open space, but office partitions, computer facilities, furnishings, and so on, must all be provided.环球石油公司计划将信用卡的经营从达拉斯搬到爱阿华州的第蒙。搬迁涉及到公司许多不同的部门。人事部要决定哪些员工要从达拉斯调离,需要雇佣多少新的员工,谁来负责新员工的培训。系统小组和财务部必须制定新的操作程序并确定财政安排。设计师要进行室内设计并监管需要的结构改善工程。每个场所都是有着足够开放空间的既存建筑物,必须拥有
21、写字间,计算机设施,设备等。A complicating factor is that there is an interdependence of activities. In other words, some parts of the project cannot be started until other parts are completed. For example, Global cannot construct the interior of an office before it has been designed. Neither can it hire new empl
22、oyees until it has determined its personnel requirements.一个复杂的因素是各项活动是相互关联的。换句话说,项目的一些部分必须在另一部分结束之后开始。例如,全球公司不能在室内设计之前就进行办公室内部的建造。在人事需求没有确定之前,不可能雇佣新的员工。The necessary activities and their necessary predecessors (due to interdependence) are listed below. Three estimates are made for the completion tim
23、e of each activitythe minimum time, most likely time, and maximum time.下面列出了一些必要的工作和必须的准备工作(根据相互关联)。对每项活动给出了3个评估量最小时间,最可能时间和最大时间。ImmediateTime Estimates (days)ActivityDescriptionPredecessorMinimumMost LikelyMaximumASelect Office Site212121BCreate Org. & Fin. Plan202530CDetermine Personnel Req.B15203
24、0DDesign FacilityA, C202842EConstruct FacilityD404866FSelect Personnel to MoveC121212GHire New EmployeesF202532HMove Key EmployeesF282828ITrain New PersonnelE, G, H101524Global Oil Simulation with Crystal BallStep #1 (Setup Spreadsheet)第一步(建立工作表)Step #2 (Define Assumptionsi.e., random variables)第二步(
25、定义假设例如,随机变量)Each of the random activity times (B, C, D, E, G, and I) is assumed to follow the triangular distribution.每次随机活动的次数(B, C, D, E, G, 和 I)服从三角分布。Global Oil Simulation with Crystal BallStep #3 (Define Forecasti.e., output)第三步(确定预测例如,输出量)Cell J15 is the forecast cell: J15单元格为预测单元格Step #4 (Cho
26、ose Number of Trials)第四步 (选择试验次数)500 trials were run. In addition, Sensitivity Analysis was enabled in the Options of the Run Preferences dialogue box. This allows for the generation of sensitivity analysis results later.运行500次。另外,选择优先运行对话框可以进行敏感度分析,之后可以生成敏感度分析的结果。Step #5 (Run Simulation)第五步(进行模拟)St
27、ep #6 (View Results)第六步(查看结果)Additional Results Available with Crystal Ball用水晶球得到另外的结果Slide the triangles below the histograms to determine the probability that the output (project duration) is less than a certain value (e.g., a deadline), greater than a certain value, or between any two values (by
28、sliding both triangles).滑动直方图下方的三角块可以确定在输出结果小于某特定值的概率,或者大于某值的概率,或者在两值之间的概率(滑动两侧的三角块)Alternatively, you can type in values for the lower bound or upper bound to determine the probability. You can also type in a probability (in “Certainty”), and it will determine the range that has that probability.另外
29、,可以通过键入上限和下限确定概率。也可以键入概率(在“Certainty”中),确定概率所包含的范围。There is a 79% chance the project will be completed within 150 days. There is a 2.4% chance that the project will take more than 160 days.项目在150天内完成的可能性为79%。在160多天内完成的概率为2.4%。Sensitivity Chart敏感度图Choose “Open Sensitivity Chart” in the Run menu. Note that this chart is only available if you selected the “Sensitivity Analysis” option under Run Preferences. This chart gives an indication as to which random variables (activity times) have the greatest impact on the output cell (project comp
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- GB/T 44741-2024农产品产地土壤有效态砷的测定方法
- 池河镇七年级历史下册 第二单元 辽宋夏金元时期:民族关系发展和社会变化 第7课 辽、西夏与北宋的建立教案1 新人教版
- 八年级地理上册 3.1自然资源的基本特征教案 (新版)新人教版
- 2024-2025学年高中物理 第二章 交变电流 第07节 远距离输电教案 粤教版选修3-2
- 2024-2025学年高中物理 第七章 机械能守恒定律 4 重力势能(1)教案 新人教版必修2
- 江苏省海安县实验中学高中体育 耐久跑教案2 苏教版
- 八年级英语上册 Unit 3 Families Celebrate Together Lesson 15 A Present for Li Ming教案 (新版)冀教版
- 2024-2025学年高中生物下学期《基因指导蛋白质的合成》教学设计
- 运输车贷款购销合同(2篇)
- 病毒预防+课件
- 广西贺州历年中考语文现代文阅读真题26篇(含答案)(2003-2022)
- 《微项目 探讨如何利用工业废气中的二氧化碳合成甲醇-化学反应的选择与反应条件的优》名校课件
- 《清理厨房》课件劳动四年级下册人教版
- 2024年山东省泰安市中考英语真题(原卷版)
- 人教PEP版(2024)三年级上册英语Unit 5 The colourful world单元整体教学设计(共6课时)
- Unit 3 Sports and Fitness Reading and Thinking 说课教学设计-2023-2024学年高中英语人教版(2019)必修第一册
- 《角的度量》(教学设计)-2024-2025学年四年级上册数学苏教版
- 扬州市梅岭教育集团2023-2024学年初一上学期10月数学试卷及答案
- 中医基础理论-初级课件
- 《功能性食品开发与应用》课件-辅助保护胃黏膜功能食品的开发与应用
- 100MW屋顶分布式光伏发电项目工程EPC总承包-施工组织设计方案
评论
0/150
提交评论