chiark / gitweb /
tweak initial step
authorstevenj <stevenj@alum.mit.edu>
Sun, 4 Apr 2010 20:31:47 +0000 (16:31 -0400)
committerstevenj <stevenj@alum.mit.edu>
Sun, 4 Apr 2010 20:31:47 +0000 (16:31 -0400)
darcs-hash:20100404203147-c8de0-fb83a312980103cc419a5542b2b20faa9a224518.gz

api/options.c

index 4b0403e68ef4194d673f9af71801049a76cc20f0..18cdbd427f44dad37e26926c1719fbff605763d2 100644 (file)
@@ -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;