diff options
author | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2009-01-30 17:07:53 +0000 |
---|---|---|
committer | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2009-01-30 17:07:53 +0000 |
commit | 22e026dac6c0a2225e3adb3c9ee336fafaa2e366 (patch) | |
tree | 17f34764f898685bade21ecf3fca780ad618445d /methods | |
parent | 17377ca83623b8790192cc7703d37970d6da069e (diff) | |
download | opt-utilities-22e026dac6c0a2225e3adb3c9ee336fafaa2e366.tar.bz2 |
git-svn-id: file:///home/svn/opt_utilities@10 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'methods')
-rw-r--r-- | methods/gsl_simplex/gsl_simplex.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/methods/gsl_simplex/gsl_simplex.hpp b/methods/gsl_simplex/gsl_simplex.hpp index 442c9f0..85df28e 100644 --- a/methods/gsl_simplex/gsl_simplex.hpp +++ b/methods/gsl_simplex/gsl_simplex.hpp @@ -150,7 +150,9 @@ namespace opt_utilities status = gsl_multimin_fminimizer_iterate(s); if (status) - break; + { + break; + } //std::cerr<<"threshold="<<threshold<<std::endl; size = gsl_multimin_fminimizer_size (s); status = gsl_multimin_test_size (size, threshold); @@ -166,7 +168,7 @@ namespace opt_utilities //gsl_vector_get (s->x, 1), // s->fval, size); } - while (status == GSL_CONTINUE && iter < 100); + while (status == GSL_CONTINUE); /* foo f; |