pandemia.components.policy_maker_model.default_policy_maker_model
Default policy maker model, specifiying a predefined set of policy interventions
Module Contents
Classes
Default model of a policy maker. |
Attributes
- pandemia.components.policy_maker_model.default_policy_maker_model.log
- class pandemia.components.policy_maker_model.default_policy_maker_model.DefaultPolicyMakerModel(config, scale_factor, clock, number_of_regions, number_of_vaccines, age_groups)
Bases:
pandemia.components.policy_maker_model.PolicyMakerModelDefault model of a policy maker.
Default model of a policy maker, specifiying a predefined set of policy interventions. This policy is specfied using arrays of integers and float, loaded from a csv file that can be editted. The filepath to this csv file should be found in the config.
Parameters:
- configConfig
A Pandemia Config object. A sub-config of the full config, containing the data used to configure this component.
- scale_factorfloat
The scale factor, coming from the full config.
- clockClock
A Pandemia Clock object, discretizing the day.
- number_of_regionsint
The number of regions appearing the model.
- number_of_vaccinesint
The number of vaccines appearing in the model.
- age_groupslist[int]
A list of integers coming from the vaccination model, indicating the age groups for vaccination. For example, the list [0, 18, 65] indicates three age groups.
- new_policy(policy)
Sets new policy.
- vectorize_component(vector_region)
Initializes numpy arrays associated to this component.
- initial_conditions(vector_region)
Initial policy.
- dynamics(vector_region, day)
Changes to policy.