Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 4.74 KB

README.md

File metadata and controls

43 lines (31 loc) · 4.74 KB

SEIR Model

CI Coverage Status Pharo version Pharo version Pharo version Cormas version License

A simple epidemiological model in which individuals are transitioning between the four states:

susceptible (S)exposed (E)infectious (I)recovered (R).

How to install it?

To install the image, you must first get a latest version of Cormas platform by following the instructions at Cormas GitHub (in this experiment, we used the version 8735b99 but more recent versions should also work). Then open the Playground (Ctrl+OW) in your image and execute the following Metacello script (select it and press Do-it button or Ctrl+D):

Metacello new
  baseline: 'SEIRModel';
  repository: 'github://cormas/seir-model/src';
  load.

To check if installation is correct, go to the RED-Model-Tests package and run all the tests.

How to use it?

There are two ways to run the simulation: using Cormas user interface (UI) and programmatically. In this section, we describe both ways.

Running the simulation using Cormas UI

  • Step 1. Open Cormas by clicking on the CORMAS button in the top-left corner of your image.
  • Step 2. In the top-left corner of the Cormas window, click on File, then Open to get the project-opener tool.
  • Step 3. In the top-left corner of that tool, you will see the drop-down with Demos written in it. Click on the drop-down and select the In-image option. Then, from the Projects list below, select the REDModel and press OK in the bottom-right corner. This will open the project window for the selected model.
  • Step 4. Press the Initialize button in the left part of the project window.
  • Step 5. Select the init method of initialization. Make sure that the step: control method is selected. We also want to record the probes (number of exposed, number of infectious, number of recovered, and number of susceptibl). Make sure that all four probes are selected (you can select all of them by pressing Ctrl+A on your keyboard, or Cmd+A if you are using Mac). In the Final step field (bottom-left corner), enter the number of days during which the simulation must run. By default it's 100 but in our experiment, we run the simulation for 730 day. After entering the days, press Ctrl+S on your keyboard (Cmd+S if you are using Mac) to save the change. Then press the Apply button in the bottom-right corner.
  • Step 6. In the top menu of the project window, click on the Visualization and then Space. This will open the space view. For now, it is empty, because we did not select any "points of view" (PoV) yet.
  • Step 7. In the top-left corner of the space view window, click on the PoV dropdown. You will see two items corresponding to the entities in our model: REDIndividual and REDCell. Hover over each item and select the pov option from the side menu that appears next to it. To apply your selection, close the space view window and repeat steps 4-5.