-
Notifications
You must be signed in to change notification settings - Fork 2k
Nelder-mead solver not converged #335
Comments
Hi there, I know it might be a bit late, but do you still have an example of the code that doesn't converge, so I could work on the issue? Regards, |
In case it helps, I post here the results for the SolverFoundation implementation, starting at (0,0). First function:
Second function, does not find the minimum but the local:
|
Hi @arubiomoreno, Thanks a lot for the informative examples. After some initial investigation, I could find at least one issue with the current code, in which the initial values of certain class variables are not being properly set and are causing the algorithm to terminate early after very few iterations. This will likely be fixed in a next release. Regards, |
Many thanks for this. NelderMead nm = new NelderMead(...);
nm.GetType().GetField("minf_max", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).SetValue(nm, Double.NegativeInfinity); // TODO: Remove when 3.7.0 is released I post it here in case it is useful for someone |
Fixed in v3.7.0. |
Hi, I tried to use the Nelder-mead solver for a customized optimization. I found with some initial inputs, the solver provided by accord.net can not converged. Actually the solver stops immediately after the 2nd iteration. However, if I feed the same initial input to the Nelder-mead solver provided by Microsoft Solver Foundation 3.1, the optimization can be carried on and get converged without any problem. Does anyone know how to enable the Nelder-mead solver in accord.net work in this case?
The text was updated successfully, but these errors were encountered: