You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// For more than 1 family households we need families. These are parents and children and randoms (which are distributed like the data we have for these households).
80
-
auto child = mio::abm::HouseholdMember(NUM_AGE_GROUPS); // A child is 50/50% 0-4 or 5-14.
81
-
child.set_age_weight(AGE_GROUP_0_TO_4, 1);
82
-
child.set_age_weight(AGE_GROUP_5_TO_14, 1);
80
+
auto child = mio::abm::HouseholdMember(num_age_groups); // A child is 50/50% 0-4 or 5-14.
81
+
child.set_age_weight(age_group_0_to_4, 1);
82
+
child.set_age_weight(age_group_5_to_14, 1);
83
83
84
-
auto parent = mio::abm::HouseholdMember(NUM_AGE_GROUPS); // A parent is 50/50% 15-34 or 35-59.
85
-
parent.set_age_weight(AGE_GROUP_15_TO_34, 1);
86
-
parent.set_age_weight(AGE_GROUP_35_TO_59, 1);
84
+
auto parent = mio::abm::HouseholdMember(num_age_groups); // A parent is 50/50% 15-34 or 35-59.
85
+
parent.set_age_weight(age_group_15_to_34, 1);
86
+
parent.set_age_weight(age_group_35_to_59, 1);
87
87
88
88
// Two-person household with one parent and one child.
89
89
auto twoPersonHousehold_group = mio::abm::HouseholdGroup();
@@ -152,10 +152,10 @@ int main()
152
152
person.set_assigned_location(hospital);
153
153
person.set_assigned_location(icu);
154
154
//assign work/school to people depending on their age
155
-
if (person.get_age() == AGE_GROUP_5_TO_14) {
155
+
if (person.get_age() == age_group_5_to_14) {
156
156
person.set_assigned_location(school);
157
157
}
158
-
if (person.get_age() == AGE_GROUP_15_TO_34 || person.get_age() == AGE_GROUP_35_TO_59) {
158
+
if (person.get_age() == age_group_15_to_34 || person.get_age() == age_group_35_to_59) {
0 commit comments