讲解:CS 115、CS/python、CSIM/ICS、C/C++Matlab|Python

CS 115 Computer Simulation, Assignment #2 – Train Unloading Dock (again)Due Tuesday, October 30 at beginning of classIn this assignment, you will write a simulation of a train unloading dock. The system beingmodeled is exactly the same as that described in assignment 1, except this time you will write yoursimulation in a special-purpose simulation language, CSIM. As with Assignment #1, it will betested for output correctness on the ICS openlab Linux computers.The input and output specifications remain the same; I would like to be able to run your codewith various parameters and see the output myself. Output the same list of statistics at the end ofyour simulation as specified in Assignment #1. You should use separate CSIM random numberstreams for each of the four conceptual process streams (train arrivals, train unloading times,remaining crew time, replacement crew travel time), and use the same input file specification as inass’t #1.The grading guidelines (i.e., “pretty” source code, correct simulation, brief but thoughtful writeupdescribing why you think your simulation works including various “sanity” tests) also remainthe same. The late penalty is the same, and you submit both on openlab (using the Unix “submit”command as before) and on Gradescope.In addition, you will compute two more statistics in (or at least from) your simulation(s):a) Computer the 99% confidence interval for the mean time-in-system, based upon 100runs of the simulation.b) Compute the mean time-in-system to an accuracy of 1%, with 99% confidence. Howmany runs did it take to compute this? (That is, keep re-running your simulation, eachtime with a different seed, until your 99% confidence interval has a width which is lessthan 1% of the value of the mean time-in-system.)These 代写CS 115留学生作业、代做CS/python编程作业、代写CSIM/ICS作业、C/C++设计作业代做 调试Matstatistics can be computed by hand by running your simulation many times, or, if you areclever, it can all be done with a little extra coding inside CSIM. See the functions reset,permanent_table, table_mean, report, report_table, and the part of the CSIM User Manualdiscussing confidence intervals. If you do it this way, please ensure that the default action of yoursimulation is to run on the command line just as the input specification was for Assignment #1—Idon’t want it to run 10 batches of runs when I type “./train 10 72000”. (On the other hand,don’t think you’ve managed to skip having to learn the details of confidence intervals; I’m sure toask about it on the midterm.) Note also that if you do it this way, you might get different numbersthan if you do separate simulations and combine them by hand, because in the former case youwon’t start with an empty queue at the beginning of each batch, but in the latter you will.In addition, you will use your simulation to answer the following questions:1) At what average inter-arrival time does the system become overloaded? That is, leaving alldistributions the same except the train arrival rate, how small can the average inter-arrivaltime be before the system becomes overloaded? How did you determine whether thesystem was overloaded or not?2) Does your system overload at the same rate of train arrivals as your first assignment? If itdoes not, explain why not (which means that at least one of your simulations is wrong).3) (Bonus 10%): Provide paper-and-pencil, analytical estimate of the maximum train arrivalrate (i.e., minimum average inter-arrival time), if all other values and distributions remainas they are. How close does your analytical estimate agree with the simulated one(s)above? If they disagree, why?转自:http://ass.3daixie.com/2018110131238779.html

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容