From: stevenj Date: Thu, 13 Nov 2008 17:08:06 +0000 (-0500) Subject: yikes, bug fix in DIRECT that prevented convergence for Shekel-10 (DIRECT-L is not... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c59448994631586a66f94ec7181faa2eb83ae3ce;p=nlopt.git yikes, bug fix in DIRECT that prevented convergence for Shekel-10 (DIRECT-L is not affected) darcs-hash:20081113170806-c8de0-77c0694921154f382921dca06507d02b39d2fe71.gz --- diff --git a/cdirect/cdirect.c b/cdirect/cdirect.c index a09b3f4..49d4836 100644 --- a/cdirect/cdirect.c +++ b/cdirect/cdirect.c @@ -371,7 +371,7 @@ static int convex_hull(rb_tree *t, double **hull, int allow_dups) do { /* include any duplicate points at (xmax,ymaxmin) */ hull[nhull++] = nmax->k; nmax = rb_tree_succ(nmax); - } while (nmax && nmax->k[0] == xmax && n->k[1] == ymaxmin); + } while (nmax && nmax->k[0] == xmax && nmax->k[1] == ymaxmin); else hull[nhull++] = nmax->k;