©
Fitting SIR model, ODEs
Fits the evolution in differential equations.
2024.Nov.25 06:49:10
File to upload Such as dataSIR.xlsx (data table)
Data table Data (matrix or 'csv').
Rate initial guesses Initial guesses for the rate constants (β, γ).
Computation mode     Mode ("bounded":  ≮ 0), and termination tolerance.
Method        Method of integration.
Show values Show graph coordinates.

Seeks the rate constants for the evolution by integrating its ODEs, from the initial values at t = 0 . It is:  S' = −β S I; I' = β S Iγ I; R' = γ I. Integration is by Python 'scipy' module solver solve_ivp.

Files involved: P-curfitSIR.php (this one), CurfitSIR.php, curfitSIR.py.

Draws plots of the integrated functions vs. time.


Computation structure — A PHP file (this page: 'P-curfitSIR.php') calls (via 'action=...') an intermediate PHP file ('CurfitSIR.php'), which (through $_POST) sends the problem data as command line arguments to a Python script. This last does the computing, and makes 'system' call(s) to 'gnuplot', for the final (temporary) webpage.

Keywords: PHP, command line arguments, Python script, gnuplot.

References: Plate: FittingSIRmodel

• (Wikipedia) PHP (from Personal Home Page)

• Python module 'scipy' solver scipy.integrate.solve_ivp.

• MOSAIC, Use of Basic Elements II – Ordinary Differential Equation System.

• 1936-08-18: Kovács, László György (†2013-07-28, 76 yrs.)

 
 
Valid HTML 5! IST http://web.ist.utl.pt/~mcasquilho/randomkinet/curfitSIR/P-curfitSIR.php
Created: 2024-08-18 — Last modified: 2024-08-24