Generative Artificial Intelligence (GenAI) to convert images of queuing networks into verifiable simulation models: an open-weight LLM workflow approach
2026-07-27 • Artificial Intelligence
Artificial Intelligence
AI summaryⓘ
The authors developed Sketch2DES, a method that turns simple drawings of queuing networks into computer simulation models. Instead of writing code directly, their process uses AI to convert pictures into structured text and then into verified, ready-to-run simulations. This makes building simulations easier to check, share, and use, especially for people who don't know programming. They tested it on various examples and found it works reliably and produces results similar to those made by experts. However, it currently works only on certain types of models and depends on how well the AI understands the drawings.
Large Language ModelsDiscrete-Event SimulationQueuing NetworksMultimodal ModelsSchema ValidationJSONModel VerificationCode GenerationSimulation ModelingReproducibility
Authors
Thomas Monks, Alison Harper, Amy Heather, Navonil Mustafee
Abstract
Recent work has explored the use of Large Language Models (LLMs) to automate simulation model building, typically by generating executable code directly from natural language descriptions. However, this raises challenges for verification and reproducibility particularly for users without programming expertise. We propose Sketch2DES, a sketch-to-simulation workflow that converts diagrammatic representations of queuing networks into verifiable discrete-event simulation models using open-weight LLMs. The workflow has three stages: (1) translation of a diagram into a semi-structured textual description using a multimodal LLM; (2) conversion into schema-validated structured data (JSON) via an LLM with a reflection-based verification loop; and (3) deterministic transformation into an executable simulation model using a software adapter. Intermediate artefacts can therefore be inspected and automatically validated before execution. We evaluate the approach on eight queuing-network diagrams of varying complexity. The workflow achieved high reliability for all stages, and results were statistically indistinguishable from human-coded and analytical benchmarks. Compared to direct code generation, the workflow improves reproducibility, transparency, and verifiability, while reducing the need for programming expertise. Limitations include restricted model scope and dependence on accurate visual interpretation. The results demonstrate the feasibility of structured, workflow-based model generation as a robust foundation for LLM-assisted simulation modelling.