A simple epidemiological model in which individuals are transitioning between the four states:
susceptible (S) → exposed (E) → infectious (I) → recovered (R).
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.
There are two ways to run the simulation: using Cormas user interface (UI) and programmatically. In this section, we describe both ways.
- 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
, thenOpen
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 theIn-image
option. Then, from theProjects
list below, select theREDModel
and pressOK
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 thestep:
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 pressingCtrl+A
on your keyboard, orCmd+A
if you are using Mac). In theFinal 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, pressCtrl+S
on your keyboard (Cmd+S
if you are using Mac) to save the change. Then press theApply
button in the bottom-right corner. - Step 6. In the top menu of the project window, click on the
Visualization
and thenSpace
. 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
andREDCell
. Hover over each item and select thepov
option from the side menu that appears next to it. To apply your selection, close the space view window and repeat steps 4-5.