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
CORMASbutton in the top-left corner of your image. - Step 2. In the top-left corner of the Cormas window, click on
File, thenOpento get the project-opener tool. - Step 3. In the top-left corner of that tool, you will see the drop-down with
Demoswritten in it. Click on the drop-down and select theIn-imageoption. Then, from theProjectslist below, select theREDModeland pressOKin the bottom-right corner. This will open the project window for the selected model. - Step 4. Press the
Initializebutton in the left part of the project window. - Step 5. Select the
initmethod 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+Aon your keyboard, orCmd+Aif you are using Mac). In theFinal stepfield (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+Son your keyboard (Cmd+Sif you are using Mac) to save the change. Then press theApplybutton in the bottom-right corner. - Step 6. In the top menu of the project window, click on the
Visualizationand 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
PoVdropdown. You will see two items corresponding to the entities in our model:REDIndividualandREDCell. Hover over each item and select thepovoption from the side menu that appears next to it. To apply your selection, close the space view window and repeat steps 4-5.