optimizers.h updated

This commit is contained in:
Parikshit Ram
2008-01-26 17:06:18 +00:00
parent 1eee834f1c
commit a01d2caff5
+1 -1
View File
@@ -145,7 +145,7 @@ class NelderMead {
// i.e., do a one dimensional contraction
ysave = y[ihi];
ytry = ModSimplex_(pts, y, psum, ihi, -0.5);
ytry = ModSimplex_(pts, y, psum, ihi, 0.5);
if( ytry > y[ihi] ) {
// Can't get rid of the high point,
// try to contract around the best point