A tool for modeling, simulation, and performance evaluation of discrete-event systems



General purpose Petri Net Simulator

For MATLAB Platform


Reggie Davidrajuh

Email: Reggie.Davidrajuh@uis.no

University of Stavanger, Norway



Commendation for the software GPenSIM:


The Adelaide (Australian) research team about GPenSIM:

Cameron, A., Stumptner, M., Nandagopal, N., Mayer, W., & Mansell, T. (2015) “Rule-based peer-to-peer framework for decentralised real-time service oriented architectures.” Science of Computer Programming, 97, 202-234. Elsevier.  


Although there are many Petri Net modelling tools that support marked graphs, the GPenSim [30] modelling tool is ideal, primarily due to its flexibility in being able to control the system via the model to incorporate embedded computational components that can vary the token holding times.”

The multinational research team about GPenSIM:

Mutarraf, U., Barkaoui, K., Li, Z., Wu, N., & Qu, T. (2018). “Transformation of Business Process Model and Notation models onto Petri nets and their analysis,” Advances in Mechanical Engineering, 10(12), 1687814018808170.


Several tools exist for Petri net modeling such as SPNP, INA, CPN Tools, GPenSIM, and Renew Tool. We choose GPenSIM for analysis since it has more

functionalities (i.e. mathematical formulas) as it is embedded in the MATLAB environment, which makes the simulation to be faster; the only restriction is that it

does not have a graphical view. The integration with MATLAB can also harness diverse toolboxes available in the MATLAB environment by combining GPenSIM with the Control System Toolbox. The advantages of GPenSIM over other toolboxes are as follows: we can add probability to the gateways, time can be easily added to transitions, and siphons and invariants can also be found easily.”




GPenSIM Book & Software:



A book by Springer published with the GPenSIM version 10 (Newest and stable version).




The book:  

Davidrajuh, Reggie (2018) “Modeling discrete-event systems with GPenSIM: An introduction.” Springer, ISBN: 978-3-319-73101-8


Online Extras for this book:

GPenSIM v.10 Software + Installation Guide + 38 Worked Examples


NEW! Online Addendum to the book:

Addendum-1: Implementing Colored Petri Nets in GPenSIM + Examples 39-49  

Addendum-2: Using GPenSIM Resources + Examples 50-56

Addendum-3: Cost Calculations in Petri Nets + Examples 57-60

Addendum-4: Creating Modular Petri Net model





GPenSIM v.9 (Older)

1.     User Manual for version 9.0 (PDF File) 

2.     Software code (Zipped MATLAB M-files, ver. 9.0) 

3.     Examples (Zipped MATLAB M-files)