For Nelder-Mead, shouldnt the reflection step occur iff best value <= reflected value < second worst value?
The current code seems to check both reflected value <= best value and reflected value < worst value, in which case the second check seems redundant.
https://github.com/MarcelMG/NelderMeadSimplex_Python/blob/ebd4151e16def194bdbd386fd6d4de73ac4b3741/Nelder_Mead_Simplex_Optimizer.ipynb#L95
For Nelder-Mead, shouldnt the reflection step occur iff
best value <= reflected value < second worst value
? The current code seems to check bothreflected value <= best value
andreflected value < worst value
, in which case the second check seems redundant.