Skip to content

Using the Levenberg-Marquardt to solve a set of non-linear equations #1039

Answered by diluculo
profhsgill asked this question in Q&A
Discussion options

You must be logged in to vote

[EDIT] I've revised the comment to express the Levenberg-Marquardt method and its underlying assumptions more clearly.

Rosenbrock_LM_Der() or Rosenbrock_LM_Dif() can be of assistance. As you know, the Levenberg-Marquardt method seeks to determine parameters that minimize the squared difference between the model and the measured values.

For your optimization, assume that the measured values, represented by the Y vectors, are zeros, and consider the following model values:

// model: 
//       f(x; a, b) = f1^2 + f2^2 = (a - b + 1)^2 + (a^2 - b + 1)^2
// derivatives:
//       df/da = 4 a^3 + a (6 - 4 b) - 2 b + 2
//       df/db = -2 (a^2 + a - 2 b + 2)

Please note that the results may vary d…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@profhsgill
Comment options

Answer selected by profhsgill
Comment options

You must be logged in to vote
1 reply
@profhsgill
Comment options

Comment options

You must be logged in to vote
2 replies
@diluculo
Comment options

@profhsgill
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants