Skip to content

Add support for reading templated SECIR models from JSON data #1370

@julianlitz

Description

@julianlitz

Feature description

For the parameter optimization we require a function that returns the templated model:

template <typename FP>
mio::osecirvvs::Model<FP> create_model();
template <typename FP>
mio::Graph<mio::SimulationNode<FP, mio::Simulation<FP, mio::osecirvvs::Model<FP>>>, mio::MobilityEdge<FP>> create_graph_model();

At the moment, models can only be read as double. Casting a double-based model to a generic FP type isn’t feasible, as it would require significant effort and complex metaprogramming, especially within the graph structure.

To address this, we will template the remaining I/O files, enabling models to be read directly with the appropriate template parameter (FP).

Additional context

No response

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project.

Metadata

Metadata

Assignees

Labels

class::featureA feature to be implemented for some part of the software

Type

No type

Projects

Status

Done (Total)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions