Python implementation of Levenberg-Marquardt algorithm built from scratch in Numpy.
In the example, I fit an mechanical hardening law (Hollomon:
scipy.optimize.least_squares
works great when you have the raw function for every points (y = ax + b
), which is not always the case (ie. black box function or iterative stress compute).
Some references: