parameters.h Source File
|
CPP API
|
ode_secirts/parameters.h
Go to the documentation of this file.
751 StartDay<FP>, Seasonality<FP>, ICUCapacity<FP>, TestAndTraceCapacity<FP>, TestAndTraceCapacityMaxRiskNoSymptoms<FP>,
752 TestAndTraceCapacityMaxRiskSymptoms<FP>, ContactPatterns<FP>, DynamicNPIsInfectedSymptoms<FP>, TimeExposed<FP>,
753 TimeInfectedNoSymptoms<FP>, TimeInfectedSymptoms<FP>, TimeInfectedSevere<FP>, TimeInfectedCritical<FP>,
755 TimeTemporaryImmunityII<FP>, TransmissionProbabilityOnContact<FP>, RelativeTransmissionNoSymptoms<FP>,
756 RecoveredPerInfectedNoSymptoms<FP>, RiskOfInfectionFromSymptomatic<FP>, MaxRiskOfInfectionFromSymptomatic<FP>,
757 SeverePerInfectedSymptoms<FP>, CriticalPerSevere<FP>, DeathsPerSevere<FP>, DeathsPerCritical<FP>,
760 DailyBoosterVaccinations<FP>, ReducExposedPartialImmunity<FP>, ReducExposedImprovedImmunity<FP>,
762 ReducInfectedSevereCriticalDeadPartialImmunity<FP>, ReducInfectedSevereCriticalDeadImprovedImmunity<FP>,
838 if (this->template get<Seasonality<FP>>() < 0.0 || this->template get<Seasonality<FP>>() > 0.5) {
860 log_warning("Constraint check: Parameter TestAndTraceCapacityMaxRiskSymptoms changed from {} to {}",
867 log_warning("Constraint check: Parameter TestAndTraceCapacityMaxRiskNoSymptoms changed from {} to {}",
923 log_warning("Constraint check: Parameter TimeTemporaryImmunityPI changed from {} to {}. Please "
932 log_warning("Constraint check: Parameter TimeTemporaryImmunityII changed from {} to {}. Please "
941 log_warning("Constraint check: Parameter TimeWaningPartialImmunity changed from {} to {}. Please "
950 log_warning("Constraint check: Parameter TimeWaningImprovedImmunity changed from {} to {}. Please "
960 log_warning("Constraint check: Parameter TransmissionProbabilityOnContact changed from {} to {} ",
967 log_warning("Constraint check: Parameter RelativeTransmissionNoSymptoms changed from {} to {} ",
975 log_warning("Constraint check: Parameter RecoveredPerInfectedNoSymptoms changed from {} to {} ",
1013 if (this->template get<CriticalPerSevere<FP>>()[i] + this->template get<DeathsPerSevere<FP>>()[i] > 1.0) {
1014 log_warning("Constraint check: CriticalPerSevere + DeathsPerSevere exceed 1.0 for age group {}. "
1037 log_warning("Constraint check: Parameter DaysUntilEffectiveImprovedVaccination changed from {} to {}",
1044 log_warning("Constraint check: Parameter DaysUntilEffectiveBoosterImmunity changed from {} to {}",
1066 log_warning("Constraint check: Parameter ReducInfectedSymptomsPartialImmunity changed from {} to {}",
1073 log_warning("Constraint check: Parameter ReducInfectedSymptomsImprovedImmunity changed from {} to {}",
1080 log_warning("Constraint check: Parameter ReducInfectedSevereCriticalDeadPartialImmunity changed from "
1088 log_warning("Constraint check: Parameter ReducInfectedSevereCriticalDeadImprovedImmunity changed from "
1119 if (this->template get<Seasonality<FP>>() < 0.0 || this->template get<Seasonality<FP>>() > 0.5) {
1220 log_error("Constraint check: Parameter TransmissionProbabilityOnContact smaller {} or larger {}", 0, 1);
1231 log_error("Constraint check: Parameter RecoveredPerInfectedNoSymptoms smaller {} or larger {}", 0, 1);
1237 log_error("Constraint check: Parameter RiskOfInfectionFromSymptomatic smaller {} or larger {}", 0, 1);
1243 log_error("Constraint check: Parameter SeverePerInfectedSymptoms smaller {} or larger {}", 0, 1);
1259 if (this->template get<CriticalPerSevere<FP>>()[i] + this->template get<DeathsPerSevere<FP>>()[i] > 1.0) {
1260 log_error("Constraint check: CriticalPerSevere + DeathsPerSevere exceed 1.0 for age group {}.",
1288 log_error("Constraint check: Parameter ReducExposedPartialImmunity smaller {} or larger {}", 0, 1);
1293 log_error("Constraint check: Parameter ReducExposedImprovedImmunity smaller {} or larger {}", 0, 1);
1298 log_error("Constraint check: Parameter ReducInfectedSymptomsPartialImmunity smaller {} or larger {}", 0,
1304 log_error("Constraint check: Parameter ReducInfectedSymptomsImprovedImmunity smaller {} or larger {}",
1310 log_error("Constraint check: Parameter ReducInfectedSevereCriticalDeadPartialImmunity smaller {} or "
1317 log_error("Constraint check: Parameter ReducInfectedSevereCriticalDeadImprovedImmunity smaller {} or "
A class template for an array with custom indices.
Definition: custom_index_array.h:136
represents non-pharmaceutical interventions (NPI) that are activated during the simulation if some va...
Definition: dynamic_npis.h:37
const ParameterTagTraits< Tag >::Type & get() const
get value of a parameter
Definition: parameter_set.h:262
Represents the simulation time as an integer index.
Definition: simulation_day.h:32
The UncertainContactMatrix class consists of a ContactMatrix with fixed baseline and uncertain Dampin...
Definition: uncertain_matrix.h:43
Parameters of the age-resolved SECIRS-type model with high temporary immunity upon immunization and w...
Definition: ode_secirts/parameters.h:771
static IOResult< Parameters > deserialize(IOContext &io)
deserialize an object of this class.
Definition: ode_secirts/parameters.h:1348
FP & get_end_commuter_detection()
Time in simulation after which no infected commuters are detected.
Definition: ode_secirts/parameters.h:812
Parameters(AgeGroup num_agegroups)
Definition: ode_secirts/parameters.h:773
FP m_start_commuter_detection
Definition: ode_secirts/parameters.h:1357
Parameters(ParametersBase< FP > &&base)
Definition: ode_secirts/parameters.h:1336
FP m_end_commuter_detection
Definition: ode_secirts/parameters.h:1358
FP m_commuter_nondetection
Definition: ode_secirts/parameters.h:1356
FP get_end_commuter_detection() const
Definition: ode_secirts/parameters.h:817
AgeGroup get_num_groups() const
Definition: ode_secirts/parameters.h:779
bool apply_constraints()
Checks whether all Parameters satisfy their corresponding constraints and applies them,...
Definition: ode_secirts/parameters.h:835
FP & get_start_commuter_detection()
Time in simulation before which no infected commuters are detected.
Definition: ode_secirts/parameters.h:799
bool check_constraints() const
Checks whether all Parameters satisfy their corresponding constraints and logs an error if constraint...
Definition: ode_secirts/parameters.h:1116
FP get_commuter_nondetection() const
Definition: ode_secirts/parameters.h:791
AgeGroup m_num_groups
Definition: ode_secirts/parameters.h:1355
FP get_start_commuter_detection() const
Definition: ode_secirts/parameters.h:804
FP & get_commuter_nondetection()
Percentage of infected commuters that are not detected.
Definition: ode_secirts/parameters.h:787
static min_max_return_type< ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 >, ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > >::type max(const ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > &a, const ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > &b)
Definition: ad.hpp:2596
int size(Comm comm)
Return the size of the given communicator.
Definition: miompi.cpp:75
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
void log_warning(spdlog::string_view_t fmt, const Args &... args)
Definition: logging.h:126
auto success()
Create an object that is implicitly convertible to a succesful IOResult<void>.
Definition: io.h:360
void log_error(spdlog::string_view_t fmt, const Args &... args)
Definition: logging.h:114
boost::outcome_v2::unchecked< T, IOStatus > IOResult
Value-or-error type for operations that return a value but can fail.
Definition: io.h:354
Definition: io.h:95
The contact patterns within the society are modelled using an UncertainContactMatrix.
Definition: ode_secirts/parameters.h:168
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:170
UncertainContactMatrix< FP > Type
Definition: ode_secirts/parameters.h:169
static std::string name()
Definition: ode_secirts/parameters.h:174
The percentage of ICU patients per hospitalized patients in the SECIRTS model.
Definition: ode_secirts/parameters.h:462
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:463
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:464
static std::string name()
Definition: ode_secirts/parameters.h:468
Total number of booster vaccinations up to the given day.
Definition: ode_secirts/parameters.h:600
CustomIndexArray< FP, AgeGroup, SimulationDay > Type
Definition: ode_secirts/parameters.h:601
static std::string name()
Definition: ode_secirts/parameters.h:606
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:602
Total number of full vaccinations up to the given day.
Definition: ode_secirts/parameters.h:583
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:585
static std::string name()
Definition: ode_secirts/parameters.h:589
CustomIndexArray< FP, AgeGroup, SimulationDay > Type
Definition: ode_secirts/parameters.h:584
Total number of first vaccinations up to the given day.
Definition: ode_secirts/parameters.h:566
static std::string name()
Definition: ode_secirts/parameters.h:572
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:568
CustomIndexArray< FP, AgeGroup, SimulationDay > Type
Definition: ode_secirts/parameters.h:567
Time in days until booster vaccine dose takes full effect.
Definition: ode_secirts/parameters.h:549
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:550
static std::string name()
Definition: ode_secirts/parameters.h:555
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:551
Time in days until second vaccine dose takes full effect.
Definition: ode_secirts/parameters.h:532
static std::string name()
Definition: ode_secirts/parameters.h:538
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:534
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:533
Time in days until first vaccine dose takes full effect.
Definition: ode_secirts/parameters.h:515
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:517
static std::string name()
Definition: ode_secirts/parameters.h:521
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:516
The percentage of dead patients per ICU patients in the SECIRTS model.
Definition: ode_secirts/parameters.h:498
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:500
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:499
static std::string name()
Definition: ode_secirts/parameters.h:504
The percentage of dead patients per hospitalized patients.
Definition: ode_secirts/parameters.h:481
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:483
static std::string name()
Definition: ode_secirts/parameters.h:487
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:482
The NPIs that are enacted if certain infection thresholds are exceeded.
Definition: ode_secirts/parameters.h:185
static std::string name()
Definition: ode_secirts/parameters.h:191
static Type get_default(AgeGroup)
Definition: ode_secirts/parameters.h:187
Represents the icu capacity in the SECIRTS model.
Definition: ode_secirts/parameters.h:102
static Type get_default(AgeGroup)
Definition: ode_secirts/parameters.h:104
Represents the relative infectiousness of a new variant.
Definition: ode_secirts/parameters.h:737
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:739
static std::string name()
Definition: ode_secirts/parameters.h:743
CustomIndexArray< FP, AgeGroup > Type
Definition: ode_secirts/parameters.h:738
Risk of infection from symptomatic cases increases if test and trace capacity is exceeded.
Definition: ode_secirts/parameters.h:428
static std::string name()
Definition: ode_secirts/parameters.h:434
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:430
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:429
The percentage of asymptomatic cases in the SECIRTS model.
Definition: ode_secirts/parameters.h:394
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:395
static std::string name()
Definition: ode_secirts/parameters.h:400
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:396
Factor to reduce infection risk for persons with improved immunity.
Definition: ode_secirts/parameters.h:634
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:635
static std::string name()
Definition: ode_secirts/parameters.h:640
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:636
Factor to reduce infection risk for persons with partial immunity.
Definition: ode_secirts/parameters.h:617
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:619
static std::string name()
Definition: ode_secirts/parameters.h:623
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:618
Factor to reduce risk of hospitalization for persons with improved immunity.
Definition: ode_secirts/parameters.h:703
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:705
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:704
static std::string name()
Definition: ode_secirts/parameters.h:709
Factor to reduce risk of hospitalization for persons with partial immunity.
Definition: ode_secirts/parameters.h:686
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:687
static std::string name()
Definition: ode_secirts/parameters.h:692
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:688
Factor to reduce risk of developing symptoms for persons with improved immunity.
Definition: ode_secirts/parameters.h:668
static std::string name()
Definition: ode_secirts/parameters.h:674
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:670
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:669
Factor to reduce risk of developing symptoms for persons with partial immunity.
Definition: ode_secirts/parameters.h:651
static std::string name()
Definition: ode_secirts/parameters.h:657
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:653
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:652
Factor to reduce infectious time of persons with partial or improved immunity.
Definition: ode_secirts/parameters.h:720
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:721
static std::string name()
Definition: ode_secirts/parameters.h:726
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:722
The relative infectability from individuals located in the InfectedNoSymptoms infection state.
Definition: ode_secirts/parameters.h:377
static std::string name()
Definition: ode_secirts/parameters.h:383
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:379
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:378
The risk of infection from symptomatic cases in the SECIRTS model.
Definition: ode_secirts/parameters.h:411
static std::string name()
Definition: ode_secirts/parameters.h:417
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:413
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:412
The seasonality in the SECIRTS-type model.
Definition: ode_secirts/parameters.h:85
static Type get_default(AgeGroup)
Definition: ode_secirts/parameters.h:87
The percentage of hospitalized patients per infected patients in the SECIRTS model.
Definition: ode_secirts/parameters.h:445
static std::string name()
Definition: ode_secirts/parameters.h:451
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:447
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:446
The start day of a new variant in the SECIRTS-type model.
Definition: ode_secirts/parameters.h:66
static std::string name()
Definition: ode_secirts/parameters.h:72
static Type get_default(AgeGroup)
Definition: ode_secirts/parameters.h:68
The start day in the SECIRTS-type model.
Definition: ode_secirts/parameters.h:47
static Type get_default(AgeGroup)
Definition: ode_secirts/parameters.h:49
Multiplier for the test and trace capacity to determine when it is considered overloaded from cases w...
Definition: ode_secirts/parameters.h:135
static Type get_default(AgeGroup)
Definition: ode_secirts/parameters.h:137
static std::string name()
Definition: ode_secirts/parameters.h:141
UncertainValue< FP > Type
Definition: ode_secirts/parameters.h:136
Multiplier for the test and trace capacity to determine when it is considered overloaded by symptomat...
Definition: ode_secirts/parameters.h:151
static Type get_default(AgeGroup)
Definition: ode_secirts/parameters.h:153
UncertainValue< FP > Type
Definition: ode_secirts/parameters.h:152
static std::string name()
Definition: ode_secirts/parameters.h:157
The Capacity to test and trace contacts of infected for quarantine per day.
Definition: ode_secirts/parameters.h:119
UncertainValue< FP > Type
Definition: ode_secirts/parameters.h:120
static std::string name()
Definition: ode_secirts/parameters.h:125
static Type get_default(AgeGroup)
Definition: ode_secirts/parameters.h:121
Represents the mean latent time in days for different age groups.
Definition: ode_secirts/parameters.h:202
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:203
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:204
The time people are treated by ICU before returning home in the SECIRTS model in day unit.
Definition: ode_secirts/parameters.h:274
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:275
static std::string name()
Definition: ode_secirts/parameters.h:280
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:276
The (mean) time in day unit for asymptomatic cases that are infected but have not yet developed sympt...
Definition: ode_secirts/parameters.h:220
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:222
static std::string name()
Definition: ode_secirts/parameters.h:226
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:221
The time people are 'simply' hospitalized before returning home in the SECIRTS model in day unit.
Definition: ode_secirts/parameters.h:256
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:257
static std::string name()
Definition: ode_secirts/parameters.h:262
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:258
The infectious time for symptomatic cases that are infected but who do not need to be hospitalized in...
Definition: ode_secirts/parameters.h:238
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:239
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:240
static std::string name()
Definition: ode_secirts/parameters.h:244
The time people stays immune after infection or vaccination located in the partial or improved immuni...
Definition: ode_secirts/parameters.h:344
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:345
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:346
static std::string name()
Definition: ode_secirts/parameters.h:350
The time people stays immune after infection or vaccination located in naive immunity layer in day un...
Definition: ode_secirts/parameters.h:326
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:327
static std::string name()
Definition: ode_secirts/parameters.h:332
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:328
Time in days to describe waning immunity to get susceptible from improved to partial immunity layer.
Definition: ode_secirts/parameters.h:308
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:310
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:309
static std::string name()
Definition: ode_secirts/parameters.h:314
Time in days to describe waning immunity to get susceptible from partial to naive immunity layer.
Definition: ode_secirts/parameters.h:291
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:293
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:292
static std::string name()
Definition: ode_secirts/parameters.h:297
The probability of getting infected from a single contact.
Definition: ode_secirts/parameters.h:360
static Type get_default(AgeGroup size)
Definition: ode_secirts/parameters.h:362
static std::string name()
Definition: ode_secirts/parameters.h:366
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secirts/parameters.h:361
Generated by