Skip to content

queue simulation

1 message · Norm Matloff

#
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