©
Curve fitting in system of ODE's
Uses Python 'curve_fit' in a system of ODE's.
2024.Jul.03 19:29:34
File to upload (Optional) Such as dataCurFitODE.xlsx (table of data)
Data table Data (matrix or 'csv').
Initial values Initial values.
Initial guesses Initial guesses.
Mode   Mode of computation.
Points N. of points in plot (from 0)
Show values Show graph coordinates.

Performs a regression from given data ('Data table' or Excel), to find the underlying parameters in a set of differential equations (ODE) of a single variable, such as time in a multicomponent kinetics problem (default example in Figure.)

This is a an application of the Python 'curve_fit' function, in the 'scipy.optimize' module, a part of the Python 'SciPy' library.

Advantage is taken from: PHP, for the web page; and Python for the numerical segment; and 'gnuplot', for plotting.

Draws a plot of the original and the adjusted data.

ODE

Computation structure — A PHP file (this page: 'P-curFitODE.php') calls (via 'action=...') an intermediate PHP file ('CurFitODE.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.

Files involved: P-curFitODE.php (this one), CurFitODE.php, curFitODE.py.

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

References: Plate: CurveFitUniMult

• (Wikipedia) PHP (from Personal Home Page)

• Python curve_fit [in Optimization and root finding (scipy.optimize)], accessed 25-Oct-2023.

• Ford Versypt, Ashlee N., School of Eng.ing and Applied Science, University at Buffalo, SUNY. GitHub: L13 Parameter Estimation in Python, accessed 31-Oct-2023.

• 1927-10-27: Postnikov, Mikhail Mikhailovich (Михаил Михайлович Постников) (†2004-05-17, 76 yrs.).

 
 
Valid HTML 5! IST http://web.ist.utl.pt/~ist11038/compute/explore/odeint/P-curFitODE.php
Created: 2023-10-28 — Last modified: 2024-06-18