Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 929 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 929 Bytes

Simple SIR Semi-Guided Random Walk Epidemic Model

NOTE: I am no epidemiologist, this is just some ChatGPT lolz.

A very simple SIR (Susceptible, Infected, Recovered) model of disease spread. Developed in cooperation with OpenAI. (2024). ChatGPT (3.5) [Large language model]. https://chat.openai.com

Consist primarily of three classes:

  • "Infection" with parameters name, lifetime, radius, infect_rate and post_sick_resilience
  • "Person" with parameters pos, resilience, direction, and more
  • "EpidemicModel" with the environment, functions to infect etc.

A file "Simulation_%settings%.gif" is output from this script, which plots the movement and states of people, impassable objects, and the total number of healthy, infected and recovered people wrt. time. See example below: Simulation_IR0 300_PSR0 150_T50_LDL500