Skip to content

Commit 86136fd

Browse files
committed
adapt dynamic npi structure in benchmark
1 parent 6fa50e9 commit 86136fd

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

cpp/benchmarks/flow_simulation_ode_secirvvs.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,15 @@ void setup_model(Model& model)
713713
model.parameters.template get<osecirvvs::ReducTimeInfectedMild<ScalarType>>()[AgeGroup(0)] = 0.9;
714714

715715
model.parameters.template get<osecirvvs::Seasonality<ScalarType>>() = 0.2;
716+
717+
auto& npis = model.parameters.template get<osecirvvs::DynamicNPIsInfectedSymptoms<ScalarType>>();
718+
auto npi_groups = Eigen::VectorXd::Ones(contact_matrix[0].get_num_groups());
719+
npis.set_threshold(0.01 * 100'000, {DampingSampling<ScalarType>(0.5, DampingLevel(0), DampingType(0),
720+
SimulationTime<ScalarType>(0), {0}, npi_groups)});
721+
npis.set_base_value(100'000);
722+
npis.set_implementation_delay(SimulationTime<ScalarType>(7.0));
723+
npis.set_duration(SimulationTime<ScalarType>(14.0));
724+
716725
// The function apply_constraints() ensures that all parameters are within their defined bounds.
717726
// Note that negative values are set to zero instead of stopping the simulation.
718727
model.apply_constraints();

0 commit comments

Comments
 (0)