Skip to content

Decision Process

The decision process used on closing of sercices and lockdown are protocols already implemented in the software, to use those mechanics the user must select one of the decision process available by storing it in the decision parameter and also set the parameters for the decision process on the parameters decision_par_lockdown and decision_par_services_closing.

Example
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
from comorbuss import decisions, community

parameters = dict()

parameters["decision"] = decisions.BY_DIAGNOSTICS
parameters["decision_par_lockdown"] = {
        "start_frac": 0.02,
        "stop_frac": 0.01,
}
parameters["decision_par_services_closing"] = {
        "start_frac": 0.01,
        "stop_frac": 0.005,
}

comm = community(**parameters)
comm.simulate()

Tip

The decision process for closing of services can be set globally with decision and decision_par_services_closing, or it can be set individually for each service with the parameters decision and decision_par in the service's parameters dictionary.

Available decisions

BY_DIAGNOSTICS

Decisions are taken by the percentage of diagnosed particles.

Parameters:

Name Type Description Default
start_frac float

Fraction of the population diagnosed to start intervention.

'0.02'
stop_frac float

Fraction of the population diagnosed to stop intervention.

'0.01'

BY_HOSPITALIZATION

Decisions are taken by the percentage of hospitalized particles.

Parameters:

Name Type Description Default
start_frac float

Fraction of the population hospitalized to start intervention.

'0.06'
stop_frac float

Fraction of the population hospitalized to stop intervention.

'0.03'

BY_INFECTIOUS

Decisions are taken by the percentage of infectious particles..

Parameters:

Name Type Description Default
start_frac float

Fraction of the population infectious to start intervention.

'0.04'
stop_frac float

Fraction of the population infectious to stop intervention.

'0.02'

BY_SYMPTOMATICS

Decisions are taken by the percentage of symptomatic particles.

Parameters:

Name Type Description Default
start_frac float

Fraction of the population symptomatic to start intervention.

'0.06'
stop_frac float

Fraction of the population symptomatic to stop intervention.

'0.03'

FIXED_PERIOD

Decisions are taken by a fixed period.

Parameters:

Name Type Description Default
start_day float

Day of the simulation to start intervention.

'15'
stop_day float

Day of the simulation to stop intervention.

'25'