Automatic Generation of Simulation Models to Improve Business Processes

Automatic Generation of Simulation Models to Improve Business Processes


Simulation can be difficult, often requiring a lot of training, therefore AIG sought to make this process easier. They resolved that someone without any skills should be able to utilize discrete-event simulation and build good models.


AIG developed a methodology called Process Wind Tunnel (PWT), which is a system that uses a data-driven approach to improve business processes. Discrete-event simulation is an important component of this.

The Process Wind Tunnel includes current state analysis, future state design, and process automation continuous improvement.

The Process Wind Tunnel created by AIG

The Process Wind Tunnel created by AIG (click to enlarge)

Current state analysis includes an important element called process mining, which looks at event logs that are generated by the business process. This historical data can be analyzed statistically to gain insights into the business process.

Once there is a baseline for this process, it is necessary to improve it. This can be done in the future state design. Here, AnyLogic simulation is used because it has many powerful features including the ability to integrate with other tools through the Java programming capability. AIG uses AnyLogic to build data driven discrete-simulation models. AIG builds the model, does the scenario analysis, looks at new design options and comes up with an optimized or improved design.

In process automation, the system is analyzed end to end to identify areas for targeted automation or even complete automation. They have also started looking at a digital twin because they collect so much data from various systems.

Building a discrete-event simulation in this environment requires a partnership between a business process domain expert and a highly skilled simulation and analytics specialist. The former would collect historical data, while the latter would build the model in AnyLogic using this information. Once the model was built, the modeler and/or the business domain expert could utilize the simulation model to perform scenario analysis and optimization.

Business process model

Business process model (click to enlarge)

Simulation modeling requires significant information gathering. The solution offered was to decouple the process of information gathering as it was time consuming. Instead, a predefined model template could be used, which would be dependent on the relevant business process. This template should have information that a businessperson could understand.

There is an example template below, created in an Excel spreadsheet, and this is what would be provided once it was developed and customized for a specific business application. A businessperson who has little or no experience of discrete-event simulation or of modeling in general could input information. From that information a discrete-event simulation model would be generated automatically. Depending on the different business process, the model template could be different.

Example template created in an Excel spreadsheet

Example template created in an Excel spreadsheet (click to enlarge)

Once this template has been created, the modeler could choose different ways to build a simulation model. The first way would be to use the built-in Java functions to programmatically construct simulation models within the AnyLogic environment. The second way, which AIG chose, would be to use software modules written in Java outside of the AnyLogic environment and then import them into AnyLogic and let the power of AnyLogic do the further analysis.

So now the businessperson is only dealing with those Excel spreadsheets which have understandable modeling information and from there onwards the process of transforming that into a simulation model is done automatically.

The java application instantiates Java classes, reads the Excel template, and creates the Anylogic simulation model automatically

The java application instantiates Java classes, reads the Excel template, and creates the AnyLogic simulation model automatically


Using the methods described here, it is not necessary to build a model over and over again if you have multiple instances of a given process. The full scalability of the model can be enabled, from the business information to the actual modeling. The results can be interpreted by a businessperson and not an advanced AnyLogic modeler.

The case study was presented by Sudhendu Rai of AIG Investments, at the AnyLogic 2021 Conference.

The slides are available as a PDF.

Similar case studies

More case studies

Get a brochure with industry case studies