講解: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留學(xué)生作業(yè)、代做CS/python編程作業(yè)、代寫CSIM/ICS作業(yè)、C/C++設(shè)計作業(yè)代做 調(diào)試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?轉(zhuǎn)自:http://ass.3daixie.com/2018110131238779.html

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容