Skip to content

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

License

Notifications You must be signed in to change notification 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. Work in progress.

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


👥 Authors

  • Thomas Monks    ORCID: Monks

  • Alison Harper    ORCID: Harper

  • Amy Heather    ORCID: Heather


🌐 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

No packages published

Contributors 3

  •  
  •  
  •