From: stevenj Date: Thu, 13 Sep 2007 20:16:34 +0000 (-0400) Subject: fixed rosenbrock gradient X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4e8e2ab17cd5b60f2d98976b833a6efc1207b4a9;p=nlopt.git fixed rosenbrock gradient darcs-hash:20070913201634-c8de0-c097883008bbd14326621dc815e9f2202a07db5f.gz --- diff --git a/test/testfuncs.c b/test/testfuncs.c index 3865e20..09f7d55 100644 --- a/test/testfuncs.c +++ b/test/testfuncs.c @@ -36,7 +36,7 @@ static double rosenbrock_f(int n, const double *x, double *grad, void *data) UNUSED(data); if (grad) { grad[0] = -400 * a * x[0] - 2*b; - grad[1] = -200 * a; + grad[1] = 200 * a; } RETURN(100 * sqr(a) + sqr(b)); }