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
#3
You could define a functional that measures the distance between the two curves such as
X, Y = ...

def distance(a, B, G):
    x, y = Solver(a, B, G)
    return np.linalg.norm(y - Y)
Then minimize this function of 3 variables with scipy.optimize.minimize(distance, **args).
Reply


Messages In This Thread
RE: Fitting experimental data with differential equations : Optimization - by Gribouillis - Jan-15-2019, 12:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adaptive experimental design in python Shilbottle 1 1,271 May-09-2024, 10:01 PM
Last Post: Larz60+
  Sine fitting - extra modulation Pikano 2 1,857 Jan-04-2023, 07:41 AM
Last Post: Pikano
  Fitting transfer function model to FRF data ymohammadi 0 2,491 Feb-10-2022, 10:02 AM
Last Post: ymohammadi
  Transfer function from experimental data thunderspeed 0 1,937 Oct-18-2021, 05:11 PM
Last Post: thunderspeed
  Error in running the Elliott Fitting function shashisourabh 9 7,454 Nov-19-2020, 06:54 PM
Last Post: osvan
  plot differential equation sympy dan_adi 0 3,961 Oct-13-2020, 10:44 AM
Last Post: dan_adi
  curve fitting matlotlib scipy Cjstarling 2 3,377 Sep-15-2020, 02:56 PM
Last Post: Cjstarling
  construction of Neural Network for solving Differential equations arshad 0 2,104 Jun-04-2020, 09:20 AM
Last Post: arshad
  Need Help solving second order differential equations SkewedZone 2 4,020 Jun-25-2019, 12:14 PM
Last Post: SkewedZone
  Fitting Lognormal Data Carolyn 3 19,025 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