Fitting the solutions of a set of Ordinary Differential Equations (ODEs) is not so straight forward and the information provided here is just a brief introduction to the subject for a fitteia user. This implies that we focus on the possibility of writing a set of ODEs and to perform a fit/plot of the numerical solutions of one or multiple data sets.
The fitteia's internal fitting function results from the interpretation of a macro function NODE1 representing a system of N ODEs of the 1st order.
SYNTAX:
y=NODE1(t, t0, x0, y0, z0, h, "f1", "f2", "f3", ..., k)
NODE1 provides the solution of differential equations identified by the variable on the left-hand side of the equation. In the equation presented here, this variable is y but you can choose either x or z. This behavior can be modified by the value of index k (the last argument of NODE1 macro). The use of k allows the simultaneous fitting of data corresponding to different dependent variables.
The can be used to describe the evolution of infection deseases.
This version of the models SIRS includes a re-infection term .
In the fitter->Expert->Function
insert
I=NODE1(t,t0,I0,S0,R0,h,"(I*S)/(I+S+R)/Tc-I/Tr","(-I*S)/(I+S+R)/Tc+g*R","I/Tr-g*R",SIR)