Hi all, I have a multiple queing situation I'd like to simulate to get some idea of the distributions - waiting times and allocations etc. Does R has a package available for this - many years ago there used to be a language called "simscript" for discrete event simulation and I was wondering if R has an equivalent (or hopefully with graphics, something better!). Apologies if there is an easy answer to this on the help - I've looked but didn't see anything obvious to me. Thanks and a Happy Christmas. Gerard ********************************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. It is the policy of the Department of Justice, Equality and Law Reform and the Agencies and Offices using its IT services to disallow the sending of offensive material. Should you consider that the material contained in this message is offensive you should contact the sender immediately and also mailminder[at]justice.ie. Is le haghaidh an duine n? an eintitis ar a bhfuil s? d?rithe, agus le haghaidh an duine n? an eintitis sin amh?in, a bhearta?tear an fhaisn?is a tarchuireadh agus f?adfaidh s? go bhfuil ?bhar faoi r?n agus/n? faoi phribhl?id inti. Toirmisctear aon athbhreithni?, atarchur n? leathadh a dh?anamh ar an bhfaisn?is seo, aon ?s?id eile a bhaint aisti n? aon ghn?omh a dh?anamh ar a hiontaoibh, ag daoine n? ag eintitis seachas an faighteoir beartaithe. M? fuair t? ? seo tr? dhearmad, t?igh i dteagmh?il leis an seolt?ir, le do thoil, agus scrios an t-?bhar as aon r?omhaire. Is ? beartas na Roinne Dl? agus Cirt, Comhionannais agus Athch?irithe Dl?, agus na nOif?g? agus na nGn?omhaireachta? a ?s?ideann seirbh?s? TF na Roinne, seoladh ?bhair chol?il a dh?chead?. M?s rud ? go measann t? gur ?bhar col?il at? san ?bhar at? sa teachtaireacht seo is ceart duit dul i dteagmh?il leis an seolt?ir l?ithreach agus le mailminder[ag]justice.ie chomh maith. ***********************************************************************************
On Mon, 22 Dec 2008, Gerard M. Keogh wrote:> > Hi all, > > > I have a multiple queing situation I'd like to simulate to get some idea of > the distributions - waiting times and allocations etc. > Does R has a package available for this - many years ago there used to be a > language called "simscript" for discrete event simulation and I was > wondering if R has an equivalent (or hopefully with graphics, something > better!). > > Apologies if there is an easy answer to this on the help - I've looked but > didn't see anything obvious to me.Not RSiteSearch("discrete event simulation",restric='functions') ?? HTH, Chuck> > Thanks and a Happy Christmas. > > Gerard > > > ********************************************************************************** > The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. It is the policy of the Department of Justice, Equality and Law Reform and the Agencies and Offices using its IT services to disallow the sending of offensive material. > Should you consider that the material contained in this message is offensive you should contact the sender immediately and also mailminder[at]justice.ie. > > Is le haghaidh an duine n? an eintitis ar a bhfuil s? d?rithe, agus le haghaidh an duine n? an eintitis sin amh?in, a bhearta?tear an fhaisn?is a tarchuireadh agus f?adfaidh s? go bhfuil ?bhar faoi r?n agus/n? faoi phribhl?id inti. Toirmisctear aon athbhreithni?, atarchur n? leathadh a dh?anamh ar an bhfaisn?is seo, aon ?s?id eile a bhaint aisti n? aon ghn?omh a dh?anamh ar a hiontaoibh, ag daoine n? ag eintitis seachas an faighteoir beartaithe. M? fuair t? ? seo tr? dhearmad, t?igh i dteagmh?il leis an seolt?ir, le do thoil, agus scrios an t-?bhar as aon r?omhaire. Is ? beartas na Roinne Dl? agus Cirt, Comhionannais agus Athch?irithe Dl?, agus na nOif?g? agus na nGn?omhaireachta? a ?s?ideann seirbh?s? TF na Roinne, seoladh ?bhair chol?il a dh?chead?. > M?s rud ? go measann t? gur ?bhar col?il at? san ?bhar at? sa teachtaireacht seo is ceart duit dul i dteagmh?il leis an seolt?ir l?ithreach agus le mailminder[ag]justice.ie chomh maith. > *********************************************************************************** > > > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >Charles C. Berry (858) 534-2098 Dept of Family/Preventive Medicine E mailto:cberry at tajo.ucsd.edu UC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
> Date: 22-Dec-2008 10:11:28 GMT > From: "Gerard M. Keogh" <GMKeogh at justice.ie> > Subject: [R] queue simulation > To: r-help at r-project.org > > Hi all, > > > I have a multiple queing situation I'd like to simulate to get some idea of > the distributions - waiting times and allocations etc. > Does R has a package available for this - many years ago there used to be a > language called "simscript" for discrete event simulation and I was > wondering if R has an equivalent (or hopefully with graphics, something > better!).To my knowledge, this doesn't exist, but one never knows. I look forward to hearing the other responses. Discrete-event simulation (DES) is generally done under one of two main world views--event-oriented, process-oriented. The more popular is probably the process-oriented view, but it requires something like threading, which would be problematic in R. It would be easy to take the event-oriented view, as it would just require coding up some kind of priority queue routine. In fact, a couple of weeks ago I made a note to myself to do this as an example of how one could do linked data structures in R. Again, this view is considered a poor way to program DES, but if you are interested, feel free to contact me. I very much like (and am somewhat involved in the development of) SimPy, a Python-based DES package. You could use SimPy for your simulation and use RPy to access R from SimPy, to take advantage of R's graphics and statistics facilities. SimPy is at http://simpy.sourceforge.net/ Also, I have a tutorial on it at http://heather.cs.ucdavis.edu/~matloff/simcourse.html Norm Matloff University of California, Davis