All Projects → kausaltech → reina-model

kausaltech / reina-model

Licence: AGPL-3.0 License
Agent-based simulation model for COVID-19 spread in society and patient outcomes

Programming Languages

python
139335 projects - #7 most used programming language
cython
566 projects
SCSS
7915 projects

Projects that are alternatives of or similar to reina-model

js-simulator
General-purpose discrete-event multiagent simulation library for agent-based modelling and simulation
Stars: ✭ 52 (+73.33%)
Mutual labels:  simulation, agent-based-modeling, agent-based-simulation
epirust
An agent-based epidemiology simulation framework built in Rust
Stars: ✭ 76 (+153.33%)
Mutual labels:  agent-based-modeling, epidemiology, agent-based-simulation
MesaFireEvacuation
Agent Based Fire Evacuation Model built using Project Mesa
Stars: ✭ 21 (-30%)
Mutual labels:  agent-based-modeling, agent-based-simulation
farolcovid
🚦🏥. Ferramenta de monitoramento do risco de colapso no sistema de saúde em municípios brasileiros com a Covid-19 • Monitoring tool & simulation of the risk of collapse in Brazilian municipalities' health system due to Covid-19
Stars: ✭ 49 (+63.33%)
Mutual labels:  epidemiology, covid-19
COMOKIT-Model
A GAMA (http://gama-platform.org) model on the assessment and comparisons of intervention policies against the CoVid19 pandemics
Stars: ✭ 23 (-23.33%)
Mutual labels:  simulation, covid-19
agentpy
AgentPy is an open-source framework for the development and analysis of agent-based models in Python.
Stars: ✭ 236 (+686.67%)
Mutual labels:  agent-based-modeling, agent-based-simulation
EpiModelHIV
Network Models of HIV Transmission Dynamics among MSM and Heterosexuals
Stars: ✭ 20 (-33.33%)
Mutual labels:  agent-based-modeling, epidemiology
COVID19 AgentBasedSimulation
COVID-ABS: An Agent-Based Model of COVID-19 Epidemic to Simulate Health and Economic Effects of Social Distancing Interventions
Stars: ✭ 56 (+86.67%)
Mutual labels:  agent-based-simulation, covid-19
MoveSim
Codes for paper in KDD 2020 (AI for COVID-19): Learning to Simulate Human Mobility
Stars: ✭ 16 (-46.67%)
Mutual labels:  simulation, covid-19
covid19analysis
COVID-10 Analysis
Stars: ✭ 16 (-46.67%)
Mutual labels:  epidemiology, covid-19
data2019nCoV
COVID-19 Pandemic Data R Package
Stars: ✭ 40 (+33.33%)
Mutual labels:  epidemiology, covid-19
flocc
Agent-based modeling in JavaScript in the browser or on the server.
Stars: ✭ 26 (-13.33%)
Mutual labels:  agent-based-modeling, agent-based-simulation
housing-model
Agent-based model of the UK housing market.
Stars: ✭ 29 (-3.33%)
Mutual labels:  agent-based-modeling, agent-based-simulation
COVID-Resource-Allocation-Simulator
Agent-based modelling for resource allocation in viral crises to investigate resource allocation and policy interventions with respect to transmission rate.
Stars: ✭ 61 (+103.33%)
Mutual labels:  agent-based-modeling, covid-19
SmartTrafficIntersection
Another AI toy project, of a traffic intersection controlled by a Reinforcement Learning AI agent to optimize traffic flow in an intersection of vehicles or pedestrians
Stars: ✭ 30 (+0%)
Mutual labels:  simulation, agent-based-simulation
cli-corona
📈 Track COVID-19 (2019 novel Coronavirus) statistics via the command line.
Stars: ✭ 14 (-53.33%)
Mutual labels:  epidemiology, covid-19
covid-19-vis
This repository contains data visualizations based on RKI and DIVI using kepler.gl
Stars: ✭ 25 (-16.67%)
Mutual labels:  simulation, covid-19
FLAMEGPU2
FLAME GPU 2 is a GPU accelerated agent based modelling framework for C++ and Python
Stars: ✭ 25 (-16.67%)
Mutual labels:  simulation, agent-based-simulation
evoplex
Evoplex is a fast, robust and extensible platform for developing agent-based models and multi-agent systems on networks. It's available for Windows, Linux and macOS.
Stars: ✭ 98 (+226.67%)
Mutual labels:  agent-based-modeling, agent-based-simulation
PM COVID
Public Available Code and Data to Reproduce Analyses in "Air pollution and COVID-19 mortality in the United States: Strengths and limitations of an ecological regression analysis."
Stars: ✭ 97 (+223.33%)
Mutual labels:  epidemiology, covid-19

Agent-based COVID-19 simulation

This software implements an agent-based (or individual-based) model for simulating the spread of the coronavirus (SARS-CoV-2) in a healthcare district.

It models healthcare capacity (hospital beds and ICU units) and different public health simulations.

More documentation is also available in the repository.

Installation

If you're using Ubuntu/Debian, you might need to install a couple of packages:

apt install python3.8-dev libpython3.8-dev python3.8-venv \
    libfreetype6-dev libpng-dev libqhull-dev pkg-config \
    gcc gfortran libopenblas-dev liblapack-dev cython

Install a Python venv with Python 3.7 or 3.8. Install the requirements:

pip install -r requirements.txt

Compile translations:

pybabel compile -d locale

Usage

Run the simulation with:

python -m calc.simulation

Or visualize using Dash:

python -m corona

Installing and running with Docker

You can run Reina with Docker. Check reina-ui project to ../reina-ui and set following environment variables to .env file:

ENV=dev
FLASK_ENV=development
NEXT_PUBLIC_GRAPHQL_ENDPOINT=http://localhost:8080/graphql

Then run

docker-compose up

The first time you run it, it will build the container for Reina, which takes some time. Once build done, Reina UI is available at localhost:8080 by default. If you want to use some other port, set it in REINA_PORT environment variable.

While the container is running, you can run the simulation like this:

docker exec -ti reina-model python -m calc.simulation

Configuring the hospital district

Currently, Reina supports Helsinki and Uusimaa district (HUS) and Varsinais-Suomi hospital district out of the box. By default, it's configured to run for HUS, but you can set the district as Varsinais-Suomi by setting the environment variable AREA_NAME as follows:

AREA_NAME=Varsinais-Suomi

If you're running your setup via docker-compose, you can set the environment variable in .env file in the project root directory and it will work directly.

Development

Localisation

Extract new translation strings to the template:

pybabel extract -w 120 -F babel.cfg -o locale/messages.pot .

Merge new strings to language-specific translation files:

pybabel update -w 120 -i locale/messages.pot -d locale
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].