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:
2ba6e6f
)
tweak initial step
author
stevenj
<stevenj@alum.mit.edu>
Sun, 4 Apr 2010 20:31:47 +0000
(16:31 -0400)
committer
stevenj
<stevenj@alum.mit.edu>
Sun, 4 Apr 2010 20:31:47 +0000
(16:31 -0400)
darcs-hash:
20100404203147
-c8de0-
fb83a312980103cc419a5542b2b20faa9a224518
.gz
api/options.c
patch
|
blob
|
history
diff --git
a/api/options.c
b/api/options.c
index 4b0403e68ef4194d673f9af71801049a76cc20f0..18cdbd427f44dad37e26926c1719fbff605763d2 100644
(file)
--- a/
api/options.c
+++ b/
api/options.c
@@
-440,7
+440,7
@@
nlopt_result nlopt_set_default_initial_step(nlopt_opt opt, const double *x)
step = (x[i] - lb[i]) * 1.1;
}
if (nlopt_isinf(step) || step == 0) {
- step =
fabs(x[i]) * 0.25
;
+ step =
x[i]
;
}
if (nlopt_isinf(step) || step == 0)
step = 1;