VBASim is a collection of VBA Subs, Functions and Class Modules to support discrete-event simulation in VBA and Excel. VBASim is used in the text Foundations and Methods of Stochastic Simulation: A First Course, Springer.
Download the TTF Simulation (Chapter 2).
Download the VBASim software.
Download the VBASim examples.
Download the VBASim Fax Center example.
As far as possible, we have translated VBASim and the examples into Python 2.7 so that they match VBASim and the VBA examples in Foundations, rather trying to exploit features of Python. Because Python handles global variables so differently from VBA we pass variables such as Clock that VBASim treats as global.
Download the Python 2.7 software and examples.
As far as possible, we have translated VBASim and the examples into Java so that they match VBASim and the VBA examples in Foundations, rather trying to exploit features of Java. This is to facilitate teaching a class with students using different programming languages.
Download the README file.
Download the Java software and examples.
Download the Java version of Chapter 4.
As far as possible, we have translated VBASim and the examples into
Matlab so that they match VBASim and the VBA examples in
Foundations, rather trying to exploit features of Matlab. This
is to facilitate teaching a class with students using different
programming languages. For Matlab, this leads to particularly slow
execution, especially for random-number generation. Therefore, our
default installation uses the native Matlab random-number generator
rather than the one in VBASim. To use the same generator as in VBASim,
see the file lcgrand.m
Download the README file.
Download the Matlab software and examples.
Download the Matlab version of Chapter 4.
Download the Python examples.
Download the Python version of Chapter 4.