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. |