Logo
latest

Introduction

  • Introduction
  • Synthetic Population

Epidemiology

  • A Basic Introduction to Epidemic Modelling
    • The SIR Model
      • Mean-field or “Well-mixed” solution to this model
      • Stochastic solutions to this model
    • Introducing a network structure
    • Sojourn times in different compartments
    • Other Compartmental Models
      • The SEIR Model
      • The SAIR Model
      • The SIRS Model
    • Exercises

The Simulation Engine

  • Getting Started
    • Setup Requirements
      • Installing JDK
      • Installing Scala with Coursier
    • Setting up an IDE and First Run
      • IntelliJ Idea
      • Visual Studio Code
    • Running Scala on Command Line
  • Framework Basics
    • Components of the Simulation Engine
      • Graphs, Nodes, and Relations
      • Agents and Behaviours
      • Networks
      • Schedules
      • Finite State Machine
        • Stateful Agent
        • Actions
        • Transitions
    • Inputs and Outputs in BharatSim
      • Reading inputs from a synthetic population
        • Using the framework-defined functions
        • Creating the user-defined mapping function
      • Writing outputs to a CSV file
        • Saving your output to a CSV file
          • Output at a single instant of time
          • Output at every time step
    • Interventions in BharatSim
      • Intervention
        • Example using the Intervention object
      • IntervalBasedIntervention
        • Example using the IntervalBasedIntervention object
      • OffsetBasedIntervention
        • Example using the OffsetBasedIntervention object
      • SingleInvocationIntervention
        • Example using the SingleInvocationIntervention object
    • Optimisation
      • Per-tick cache
        • Example: storing location-level information
      • Outputting data to a CSV
        • The target to be optimized
        • A (naive) approach to help
        • The fastest solution
  • Writing your First Program
    • Single Location SIR
      • Creating an Empty Class
      • Implementing a single-location SIR
      • Inputting a File
    • Introduction of Disease Dynamics
      • The Required Classes
      • Writing output to a file
    • Expanding the Network
      • Implementing multiple houses, offices, and schools
      • Implementing Schedules
      • Handling Current Locations
    • Introduction of Social Interventions
      • Quarantine
    • FSM in SIR
  • Miscellaneous
    • Assembling an Executable .jar file
    • Importing a .jar file as a Library
    • Using args in main method
    • Saving location-level information from the simulation
  • Other examples
    • Houses on a lattice
  • Known Issues
    • java.util.NoSuchElementException on fetchActiveState
BharatSim Tutorial
  • Search


Revision 58584b15. Last updated on July 13, 2024.