OP Engine
Simulate changing systems and random events, from spatial dynamics to population counts.
OP Engine is a general-purpose numerical core for models that change over time and space, including systems with random events. It supports partial differential equations (PDEs) with spatial or trait structure, nonlocal interactions, compartmental models, ordinary differential equations (ODEs) and stochastic reaction networks. These interfaces are not specific to public health; current examples span epidemiological and biogeochemical systems, and other domains can supply the same model contracts.
Public; package maturity: alpha; latest released version: v0.9.1 (final) on PyPI · v0.9.1 archive · all archived versions · Release documentation and executable examples
Its methods include explicit, implicit-explicit (IMEX) and implicit integration, exact stochastic simulation, and approximate tau-leaping. Independent stochastic runs use separate event clocks. Named observations, time-window summaries and optional reaction firing counts support analysis of the simulated outputs.
OP System supplies model equations and metadata. OP Engine can also be used directly. The separately released flepimop2-op_engine provider connects compatible versions to FlepiMoP2; the provider and core have independent release lifecycles. No provider release currently accompanies OP Engine 0.9.1, so the core can be used directly pending a documented compatible provider release.
Supported backends and derivatives depend on the method and precision; see the qualification matrix. Spatial and temporal accuracy require separate checks. Derivatives through frozen-schedule replay hold step-size decisions fixed and are conditional on the recorded mesh.
What this figure supports and its limits · Computed stochastic example, inputs and checks
Method diagram (SVG) · Vector PDF · All figure sources and downloads