Skip to content
Snippets Groups Projects
Commit f931d55b authored by Jesper Andersson's avatar Jesper Andersson
Browse files

Fixed a bug in levmar for when it failed to solve for the update

parent 4be8552d
No related branches found
No related tags found
No related merge requests found
......@@ -380,6 +380,7 @@ NonlinOut levmar(const NonlinParam& p, const NonlinCF& cfo)
p.SetCF(ncf); // Store value of cost-function
}
else { // If last step was unsuccesful
success = false;
olambda = p.Lambda(); // Returning to same H, so must undo old lambda
p.SetLambda(10.0*p.Lambda()); // Increase nudge factor
p.SetCF(p.CF()); // Push another copy of best cost function value thus far
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment