I did some search to find availability of discrete event simulation
libraries in Ruby and comes out with nothing. I am sure it must be
somewhere in a cyberspace. Can somebody point to me.
If there is nothing available, I like to create one using coroutines
like what is created for python (http://simpy.sf.net).
In article <1107007128.185460.68710@f14g2000cwb.googlegroups.com>,
I did some search to find availability of discrete event simulation
libraries in Ruby and comes out with nothing. I am sure it must be
somewhere in a cyberspace. Can somebody point to me.
If there is nothing available, I like to create one using coroutines
like what is created for python (http://simpy.sf.net).
Depends on what you're looking for. There are several priority queue
implementations available for event list management. See Bruno Preiss's
Data Structures book online at <brpreiss.com,
for instance. He also has an example implementation of an M/M/1 queue.
I don't know of anything which pulls all of the pieces together in Ruby,
though.
One problem which remains with using Ruby for discrete event simulation
is that the random number generator, although of good quality, is
implemented as a System method instead of as a class from which multiple
generator objects can be instantiated. This seriously limits its use in
designed experiments. That's the main reason why I haven't translated
any of my own work over from C or Java.
One problem which remains with using Ruby for discrete event simulation is that the random number generator, although of good quality, is implemented as a System method instead of as a class from which multiple generator objects can be instantiated. This seriously limits its use in designed experiments. That's the main reason why I haven't translated any of my own work over from C or Java.