chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8068ae4
)
fixed rosenbrock gradient
author
stevenj
<stevenj@alum.mit.edu>
Thu, 13 Sep 2007 20:16:34 +0000
(16:16 -0400)
committer
stevenj
<stevenj@alum.mit.edu>
Thu, 13 Sep 2007 20:16:34 +0000
(16:16 -0400)
darcs-hash:
20070913201634
-c8de0-
c097883008bbd14326621dc815e9f2202a07db5f
.gz
test/testfuncs.c
patch
|
blob
|
history
diff --git
a/test/testfuncs.c
b/test/testfuncs.c
index 3865e20558488f2511013c286107db5cefe9ffd5..09f7d554a0283430b31ad577673341f4a88d4ff8 100644
(file)
--- 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));
}