Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pythonhealthdatascience/llm_simpy

Repository files navigation

Licence: MIT Python 3.10+ DOI

Research Compendium: Replicating Simulations in Python using Generative AI

This repository serves as a research compendium for the paper:

Monks, T., Harper, A., & Heather, A. (2025). Unlocking the Potential of Past Research: Using Generative AI to Reconstruct Healthcare Simulation Models. Journal of the Operational Research Society. https://doi.org/10.1080/01605682.2025.2554751.

A research compendium is collection of all the digital materials relevant to the study. In this case, it includes a description of the aims and models, as well the STRESS reports for each model, the full model code and testing, logs of all the prompts used and experiences working with the LLMs, analysis of the results, and more!

This has been structured into a book which is hosted on GitHub pages and can be viewed at: https://pythonhealthdatascience.github.io/llm_simpy

The final models and their streamlit applications can be viewed at: https://github.com/pythonhealthdatascience/llm_simpy_models


πŸ‘₯ Authors


🌐 Creating the environment

The project uses conda to manage dependencies. Navigate your terminal to the directory containing the code

conda env create -f binder/environment.yml

This will create a conda environment called gen_simpy. To activate:

conda activate gen_simpy

πŸ–₯️ Viewing the jupyter book locally

Once in the gen_simpy environment, navigate to the top level directory of the code repository in your terminal and issue the following command:

jb build .

This will build the HTML book locally on your machine. The terminal will display a URL link that you can use to point your browser at the HTML.


πŸ“ Citation

Please cite the archived repository:

@software{llm_simpy,
 author = {Monks, Thomas and
 Harper, Alison and
 Heather, Amy},
 title = {Using Large Language Models to support researchers
 reproduce and reuse unpublished health care
 discrete-event simulation computer models: a
 feasibility and pilot study in Python
 },
 month = mar,
 year = 2025,
 publisher = {Zenodo},
 version = {v0.1.0},
 doi = {10.5281/zenodo.15090961},
 url = {https://doi.org/10.5281/zenodo.15090961},
}

You can also cite this GitHub repository as:

Thomas Monks, Alison Harper, and Amy Heather. Using Large Language Models to support researchers reproduce and reuse unpublished health care discrete-event simulation computer models: a feasibility and pilot study in Python. https://github.com/pythonhealthdatascience/llm_simpy.

A CITATION.cff file is also provided.


Funding

This project was developed as part of the project STARS: Sharing Tools and Artefacts for Reproducible Simulations. It is supported by the Medical Research Council [grant number MR/Z503915/1].

About

Research Compendium for exploring the ability of LLMs to generate SimPy models and streamlit interfaces.

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /