Changeset 6616
- Timestamp:
- 11/18/10 08:36:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/shared/Numerics/BrentSearch.cpp
r6574 r6616 179 179 /*Stop the optimization?*/ 180 180 if (sqrt(pow(xbest-xm,2)) < (tol2-0.5*(xmax-xmin))){ 181 _printf_(VerboseControl()," %s%g\n","optimization terminated: the current x satisfies the termination criteria using 'tolx' of",tolerance);181 _printf_(VerboseControl()," optimization terminated: current x satisfies criteria 'tolx'=%g\n",tolerance); 182 182 loop=false; 183 183 } 184 184 else if (iter>=maxiter){ 185 _printf_(VerboseControl()," %s\n","exiting: Maximum number of iterations has been exceeded - increase 'maxiter'\n");185 _printf_(VerboseControl()," exiting: Maximum number of iterations has been exceeded ('maxiter'=%i)\n",maxiter); 186 186 loop=false; 187 187 } 188 188 else if (!isnan(cm_jump) && (xmin==0) && ((fxbest/fxmin)<cm_jump)){ 189 _printf_(VerboseControl()," %s%g\n","optimization terminated: the current x satisfies the termination criteria using 'cm_jump' of",cm_jump);189 _printf_(VerboseControl()," optimization terminated: current x satisfies criteria 'cm_jump'=%g\n",cm_jump); 190 190 loop=false; 191 191 }
Note:
See TracChangeset
for help on using the changeset viewer.