Skip to content

Commit 1fa5446

Browse files
committed
abm tutorials
1 parent d326811 commit 1fa5446

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

cpp-tutorials/abm/tutorial_abm_testing.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const auto age_group_80_plus = mio::AgeGroup(5);
6464
// - Is active for the full 30-day simulation window.
6565
// - Uses a PCR test (sensitivity/specificity come from TestData defaults).
6666
// - Tests are valid for `validity_days`; a negative result exempts retesting for validity_days days (Default: 3).
67-
// - Targets persons in any infected state (Exposed through Critical).
67+
// - Targets persons in any infected state (Exposed to Critical).
6868
// - Applies to all age groups except school children (5-14).
6969
// - Tests with `testing_probability` probability upon entry (Default: 100%).
7070
// - Applies to all public locations (SocialEvent, School, Work, BasicsShop)
@@ -90,7 +90,7 @@ void add_npi_testing_strategies_to_world(mio::abm::Model& model, double testing_
9090

9191
auto testing_criteria = mio::abm::TestingCriteria(ages_to_test, states_to_test);
9292
auto testing_scheme = mio::abm::TestingScheme(testing_criteria, validity, start_date_test, end_date_test,
93-
pcr_test_parameters, testing_probability);
93+
pcr_test_parameters, testing_probability);
9494

9595
// Attach the scheme to all public location types.
9696
model.get_testing_strategy().add_scheme(mio::abm::LocationType::SocialEvent, testing_scheme);
@@ -291,4 +291,4 @@ int main(int argc, char* argv[])
291291
std::cout << "Results written to abm_tests.txt\n";
292292

293293
return 0;
294-
}
294+
}

cpp-tutorials/abm/tutorial_abm_vaccination.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ int main(int argc, char* argv[])
186186
// use_data_vacc : 1 = apply JSON data-driven vaccination, 0 = skip (default: 0)
187187
// Note that no vaccination takes place if json file should be used but cannot be found!
188188
double arg_vacc_rate = (argc > 1) ? std::atof(argv[1]) : 0.0;
189-
int arg_n_households = (argc > 2) ? std::atoi(argv[2]) : 1000;
189+
int arg_n_households = (argc > 2) ? std::atoi(argv[2]) : 125;
190190
double arg_protection_peak = (argc > 3) ? std::atof(argv[3]) : 0.67;
191191
int arg_use_data_vacc = (argc > 4) ? std::atoi(argv[4]) : 0;
192192

@@ -452,4 +452,4 @@ int main(int argc, char* argv[])
452452
std::cout << "Results written to abm_vaccination.txt\n";
453453

454454
return 0;
455-
}
455+
}

0 commit comments

Comments
 (0)