@@ -139,14 +139,6 @@ namespace chem
139139
140140
141141#define NOTFOUND -1
142- #define MAXSTEEPESTDESCENTSTEPS 200 /* Should be 200 */
143- #define MAXCONJUGATEGRADIENTSTEPS 10000 /* Should be 200 */
144- #define MAXTRUNCATEDNEWTONSTEPS 500 /* Should be 200 */
145- #define MAXLINESEARCHSTEPS 10
146- #define STARTSTEPSIZE 0.0001
147- #define MIN_GRADIENT_MEAN 0.000001
148-
149-
150142
151143
152144
@@ -2044,42 +2036,13 @@ void Minimizer_O::initialize()
20442036 this ->bFCallback = NULL ;
20452037#endif
20462038 this ->_DebugOn = false ;
2047- this ->useDefaultSettings ();
20482039 this ->restart ();
20492040 this ->_Position = nil<core::T_O>();
20502041 this ->_Force = nil<core::T_O>();
20512042// this->_StepCallback = _Nil<core::LispCallback_O>();
20522043}
20532044
20542045
2055-
2056- CL_LISPIFY_NAME (" useDefaultSettings" );
2057- CL_DEFMETHOD void Minimizer_O::useDefaultSettings ()
2058- {
2059- this ->_InitialLineSearchStep = 0.01 ;
2060- this ->_NumberOfSteepestDescentSteps = MAXSTEEPESTDESCENTSTEPS;
2061- this ->_SteepestDescentTolerance = 2000.0 ;
2062- this ->_NumberOfConjugateGradientSteps = MAXCONJUGATEGRADIENTSTEPS;
2063- this ->_ConjugateGradientTolerance = 10.0 ; // Use this for now, later add TN minimizer and switch to that when this is <10.0
2064- this ->_NumberOfTruncatedNewtonSteps = MAXTRUNCATEDNEWTONSTEPS;
2065- this ->_TruncatedNewtonTolerance = 0.00000001 ;
2066- this ->_TruncatedNewtonPreconditioner = hessianPreconditioner;
2067- this ->_PrintIntermediateResults = 0 ;
2068- LOG (" _PrintIntermediateResults = {}" , this ->_PrintIntermediateResults );
2069- this ->_ReportEveryNSteps = 100 ;
2070- this ->_Status = minimizerIdle;
2071- this ->_ShowElapsedTime = true ;
2072- #ifdef USE_CALLBACKS
2073- #ifdef USEBOOSTPYTHON
2074- this ->iPythonCallbackEverySteps = 1 ;
2075- this ->POPythonCallback = NULL ;
2076- #endif
2077- #endif
2078- this ->_MinGradientMean = MIN_GRADIENT_MEAN;
2079- }
2080-
2081-
2082-
20832046CL_LISPIFY_NAME (minimizer-set-debug-on);
20842047CL_DEFMETHOD void Minimizer_O::setDebugOn (bool debugOn) {
20852048 this ->_DebugOn = debugOn;
0 commit comments