460 |
|
|
461 |
|
#endif //is_mpi |
462 |
|
|
463 |
< |
//cerr << "Waring: constraint failure" << endl; |
463 |
> |
//std::cerr << "Waring: constraint failure" << std::endl; |
464 |
|
|
465 |
|
gab = sqrt(rabsq/pabsq); |
466 |
|
|
562 |
|
|
563 |
|
if (!done){ |
564 |
|
|
565 |
< |
cerr << "Waring: can not constraint within maxIteration" << endl; |
565 |
> |
std::cerr << "Waring: can not constraint within maxIteration" << std::endl; |
566 |
|
|
567 |
|
return -1; |
568 |
|
|
782 |
|
|
783 |
|
if (!done){ |
784 |
|
|
785 |
< |
cerr << "Waring: can not constraint within maxIteration" << endl; |
785 |
> |
std::cerr << "Waring: can not constraint within maxIteration" << std::endl; |
786 |
|
|
787 |
|
return -1; |
788 |
|
|
938 |
|
|
939 |
|
void OOPSEMinimizer::printMinimizerInfo(){ |
940 |
|
|
941 |
< |
cout << "--------------------------------------------------------------------" << endl; |
942 |
< |
|
943 |
< |
cout << minimizerName << endl; |
941 |
> |
cout << "--------------------------------------------------------------------" << std::endl; |
942 |
|
|
943 |
< |
cout << "minimization parameter set" << endl; |
943 |
> |
cout << minimizerName << std::endl; |
944 |
|
|
945 |
< |
cout << "function tolerance = " << paramSet->getFTol() << endl; |
945 |
> |
cout << "minimization parameter set" << std::endl; |
946 |
> |
|
947 |
> |
cout << "function tolerance = " << paramSet->getFTol() << std::endl; |
948 |
> |
|
949 |
> |
cout << "gradient tolerance = " << paramSet->getGTol() << std::endl; |
950 |
|
|
951 |
< |
cout << "gradient tolerance = " << paramSet->getGTol() << endl; |
951 |
> |
cout << "step tolerance = "<< paramSet->getFTol() << std::endl; |
952 |
|
|
953 |
< |
cout << "step tolerance = "<< paramSet->getFTol() << endl; |
953 |
> |
cout << "absolute gradient tolerance = " << std::endl; |
954 |
|
|
955 |
< |
cout << "absolute gradient tolerance = " << endl; |
956 |
< |
|
957 |
< |
cout << "max iteration = " << paramSet->getMaxIteration() << endl; |
955 |
> |
cout << "max iteration = " << paramSet->getMaxIteration() << std::endl; |
956 |
> |
|
957 |
> |
cout << "max line search iteration = " << paramSet->getLineSearchMaxIteration() <<std::endl; |
958 |
|
|
959 |
< |
cout << "max line search iteration = " << paramSet->getLineSearchMaxIteration() <<endl; |
959 |
> |
cout << "shake algorithm = " << bShake << std::endl; |
960 |
|
|
961 |
< |
cout << "shake algorithm = " << bShake << endl; |
961 |
> |
cout << "--------------------------------------------------------------------" << std::endl; |
962 |
|
|
961 |
– |
cout << "--------------------------------------------------------------------" << endl; |
963 |
|
|
964 |
|
|
964 |
– |
|
965 |
|
} |
966 |
|
|
967 |
|
|
1102 |
|
|
1103 |
|
<< " is guaranteed" |
1104 |
|
|
1105 |
< |
<< endl; |
1105 |
> |
<< std::endl; |
1106 |
|
|
1107 |
|
} |
1108 |
|
|
1142 |
|
|
1143 |
|
if (bVerbose) |
1144 |
|
|
1145 |
< |
cerr << "Function Evaluation Error" << endl; |
1145 |
> |
std::cerr << "Function Evaluation Error" << std::endl; |
1146 |
|
|
1147 |
|
} |
1148 |
|
|
1212 |
|
|
1213 |
|
if (bVerbose) |
1214 |
|
|
1215 |
< |
cout << "stepSize is less than line search tolerance" << endl; |
1215 |
> |
cout << "stepSize is less than line search tolerance" << std::endl; |
1216 |
|
|
1217 |
|
break; |
1218 |
|
|
1240 |
|
|
1241 |
|
if (bVerbose) |
1242 |
|
|
1243 |
< |
cerr << "Function Evaluation Error" << endl; |
1243 |
> |
std::cerr << "Function Evaluation Error" << std::endl; |
1244 |
|
|
1245 |
|
} |
1246 |
|
|
1428 |
|
|
1429 |
|
minStatus = MIN_LSERROR; |
1430 |
|
|
1431 |
< |
cerr << "OOPSEMinimizer Error: line search error, please try a small stepsize" << endl; |
1431 |
> |
std::cerr << "OOPSEMinimizer Error: line search error, please try a small stepsize" << std::endl; |
1432 |
|
|
1433 |
|
return; |
1434 |
|
|
1478 |
|
|
1479 |
|
<< minimizerName << " algorithm did not converge within " |
1480 |
|
|
1481 |
< |
<< maxIter << " iteration" << endl; |
1481 |
> |
<< maxIter << " iteration" << std::endl; |
1482 |
|
|
1483 |
|
} |
1484 |
|
|