parameters.h Source File
|
CPP API
|
ode_secir/parameters.h
Go to the documentation of this file.
389 TestAndTraceCapacityMaxRisk<FP>, ContactPatterns<FP>, DynamicNPIsInfectedSymptoms<FP>, TimeExposed<FP>,
390 TimeInfectedNoSymptoms<FP>, TimeInfectedSymptoms<FP>, TimeInfectedSevere<FP>, TimeInfectedCritical<FP>,
470 if (this->template get<Seasonality<FP>>() < 0.0 || this->template get<Seasonality<FP>>() > 0.5) {
527 log_warning("Constraint check: Parameter TimeInfectedSevere changed from {} to {}. Please note "
546 log_warning("Constraint check: Parameter TransmissionProbabilityOnContact changed from {} to {} ",
553 log_warning("Constraint check: Parameter RelativeTransmissionNoSymptoms changed from {} to {} ",
561 log_warning("Constraint check: Parameter RecoveredPerInfectedNoSymptoms changed from {} to {} ",
599 if (this->template get<CriticalPerSevere<FP>>()[i] + this->template get<DeathsPerSevere<FP>>()[i] > 1.0) {
600 log_warning("Constraint check: CriticalPerSevere + DeathsPerSevere exceed 1.0 for age group {}. "
625 if (this->template get<Seasonality<FP>>() < 0.0 || this->template get<Seasonality<FP>>() > 0.5) {
690 log_error("Constraint check: Parameter TransmissionProbabilityOnContact smaller {} or larger {}", 0, 1);
701 log_error("Constraint check: Parameter RecoveredPerInfectedNoSymptoms smaller {} or larger {}", 0, 1);
707 log_error("Constraint check: Parameter RiskOfInfectionFromSymptomatic smaller {} or larger {}", 0, 1);
713 log_error("Constraint check: Parameter SeverePerInfectedSymptoms smaller {} or larger {}", 0, 1);
729 if (this->template get<CriticalPerSevere<FP>>()[i] + this->template get<DeathsPerSevere<FP>>()[i] > 1.0) {
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
The UncertainContactMatrix class consists of a ContactMatrix with fixed baseline and uncertain Dampin...
Definition: uncertain_matrix.h:43
Parameters of an age-resolved SECIR/SECIHURD model.
Definition: ode_secir/parameters.h:401
FP & get_commuter_nondetection()
Percentage of infected commuters that are not detected.
Definition: ode_secir/parameters.h:417
FP m_commuter_nondetection
Definition: ode_secir/parameters.h:765
FP get_commuter_nondetection() const
Definition: ode_secir/parameters.h:421
AgeGroup get_num_groups() const
Definition: ode_secir/parameters.h:409
FP & get_end_commuter_detection()
Time in simulation after which no infected commuters are detected.
Definition: ode_secir/parameters.h:442
FP get_end_commuter_detection() const
Definition: ode_secir/parameters.h:447
FP m_start_commuter_detection
Definition: ode_secir/parameters.h:766
FP m_end_commuter_detection
Definition: ode_secir/parameters.h:767
Parameters(AgeGroup num_agegroups)
Definition: ode_secir/parameters.h:403
FP & get_start_commuter_detection()
Time in simulation before which no infected commuters are detected.
Definition: ode_secir/parameters.h:429
Parameters(ParametersBase< FP > &&base)
Definition: ode_secir/parameters.h:745
bool apply_constraints()
Checks whether all Parameters satisfy their corresponding constraints and applies them,...
Definition: ode_secir/parameters.h:465
bool check_constraints() const
Checks whether all Parameters satisfy their corresponding constraints and logs an error if constraint...
Definition: ode_secir/parameters.h:623
FP get_start_commuter_detection() const
Definition: ode_secir/parameters.h:434
static IOResult< Parameters > deserialize(IOContext &io)
deserialize an object of this class.
Definition: ode_secir/parameters.h:757
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_secir/parameters.h:326
UncertainContactMatrix< FP > Type
Definition: ode_secir/parameters.h:327
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:328
the percentage of ICU patients per hospitalized patients in the SECIR model
Definition: ode_secir/parameters.h:276
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:277
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:278
the percentage of dead patients per ICU patients in the SECIR model
Definition: ode_secir/parameters.h:310
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:312
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:311
the percentage of dead patients per hospitalized patients.
Definition: ode_secir/parameters.h:294
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:296
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:295
the NPIs that are enforced if certain infection thresholds are exceeded.
Definition: ode_secir/parameters.h:342
static std::string name()
Definition: ode_secir/parameters.h:348
static Type get_default(AgeGroup)
Definition: ode_secir/parameters.h:344
static Type get_default(AgeGroup)
Definition: ode_secir/parameters.h:82
risk of infection from symptomatic cases increases as test and trace capacity is exceeded.
Definition: ode_secir/parameters.h:244
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:245
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:246
static std::string name()
Definition: ode_secir/parameters.h:250
the percentage of asymptomatic cases in the SECIR model
Definition: ode_secir/parameters.h:212
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:214
static std::string name()
Definition: ode_secir/parameters.h:218
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:213
the relative InfectedNoSymptoms infectability
Definition: ode_secir/parameters.h:196
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:197
static std::string name()
Definition: ode_secir/parameters.h:202
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:198
the risk of infection from symptomatic cases in the SECIR model
Definition: ode_secir/parameters.h:228
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:230
static std::string name()
Definition: ode_secir/parameters.h:234
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:229
the seasonality in the SECIR model the seasonality is given as (1+k*sin()) where the sine curve is be...
Definition: ode_secir/parameters.h:64
static Type get_default(AgeGroup)
Definition: ode_secir/parameters.h:66
the percentage of hospitalized patients per infected patients in the SECIR model
Definition: ode_secir/parameters.h:260
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:262
static std::string name()
Definition: ode_secir/parameters.h:266
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:261
the start day in the SECIR model The start day defines in which season the simulation can be started ...
Definition: ode_secir/parameters.h:47
static Type get_default(AgeGroup)
Definition: ode_secir/parameters.h:49
Multiplier for the test and trace capacity to determine when it is considered overloaded.
Definition: ode_secir/parameters.h:374
static Type get_default(AgeGroup)
Definition: ode_secir/parameters.h:376
UncertainValue< FP > Type
Definition: ode_secir/parameters.h:375
static std::string name()
Definition: ode_secir/parameters.h:380
capacity to test and trace contacts of infected for quarantine per day.
Definition: ode_secir/parameters.h:358
static std::string name()
Definition: ode_secir/parameters.h:364
UncertainValue< FP > Type
Definition: ode_secir/parameters.h:359
static Type get_default(AgeGroup)
Definition: ode_secir/parameters.h:360
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:97
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:98
the time people are treated by ICU before returning home in the SECIR model in day unit
Definition: ode_secir/parameters.h:164
static std::string name()
Definition: ode_secir/parameters.h:170
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:166
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:165
the (mean) time in day unit for asymptomatic cases that are infectious but have not yet developed sym...
Definition: ode_secir/parameters.h:113
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:115
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:114
static std::string name()
Definition: ode_secir/parameters.h:119
the time people are 'simply' hospitalized before returning home in the SECIR model in day unit
Definition: ode_secir/parameters.h:147
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:149
static std::string name()
Definition: ode_secir/parameters.h:153
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:148
the infectious time for symptomatic cases that are infected but who do not need to be hsopitalized in...
Definition: ode_secir/parameters.h:130
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:131
static std::string name()
Definition: ode_secir/parameters.h:136
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:132
probability of getting infected from a contact
Definition: ode_secir/parameters.h:180
CustomIndexArray< UncertainValue< FP >, AgeGroup > Type
Definition: ode_secir/parameters.h:181
static Type get_default(AgeGroup size)
Definition: ode_secir/parameters.h:182
static std::string name()
Definition: ode_secir/parameters.h:186
Generated by