Python Forum
Fitting experimental data with differential equations : Optimization
Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fitting experimental data with differential equations : Optimization
#7
Because I didn't know that initial conditions are known
I considered extended system, so R0 = [x0_approx, y0_appros, p0_approx, a_approx, B_approx, G_approx];

Therefore, dO_k -- residual between known measurement at time t_k and measurement at t_k obtained for trajectory started at (R0, t0).

From now, we know that (x0, y0, p0) are exactly known
(I wrote x0, y0, p0 because we have 3 coupled differential equations as you denoted that in the first post),
so our iterative process should be slightly changed:

There are several ways we can adopt our iterative process:

1) don't change x0, y0, p0 when iterating; apply changes to a, B, G only;
2) If you have measurement at t0, you can consider weighted least squares and assign very big weight to this measurement. Since measurements are raw coordinates
big weight for t0-measurement will account that x0 and y0 are very important measurements and shouldn't be changed over iterations;

Finally, everything is depending on the system of ODEs you are trying to solve. Is your system really hard to solve analytically?
You are likely needing to construct problem-specific algorithm to get estimations for a, B, G.

Have you some a priory information regarding a, B, G values...?
If you have fast numerical procedure for solving the ODE, you can try, e.g. simulated annealing approach.
At last, did you try the way proposed by Gribouillis?
Reply


Messages In This Thread
RE: Fitting experimental data with differential equations : Optimization - by scidam - Jan-17-2019, 11:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sine fitting - extra modulation Pikano 2 1,024 Jan-04-2023, 07:41 AM
Last Post: Pikano
  Fitting transfer function model to FRF data ymohammadi 0 1,698 Feb-10-2022, 10:02 AM
Last Post: ymohammadi
  Transfer function from experimental data thunderspeed 0 1,402 Oct-18-2021, 05:11 PM
Last Post: thunderspeed
  Error in running the Elliott Fitting function shashisourabh 9 5,286 Nov-19-2020, 06:54 PM
Last Post: osvan
  plot differential equation sympy dan_adi 0 3,019 Oct-13-2020, 10:44 AM
Last Post: dan_adi
  curve fitting matlotlib scipy Cjstarling 2 2,486 Sep-15-2020, 02:56 PM
Last Post: Cjstarling
  construction of Neural Network for solving Differential equations arshad 0 1,627 Jun-04-2020, 09:20 AM
Last Post: arshad
  Need Help solving second order differential equations SkewedZone 2 3,130 Jun-25-2019, 12:14 PM
Last Post: SkewedZone
  Fitting Lognormal Data Carolyn 3 16,110 May-21-2018, 12:10 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020