• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision7b4e4865b52eb3d4673428d091114e60875ac19a (tree)
Time2012-11-08 12:22:08
AuthorKatsuhiko Nishimra <ktns.87@gmai...>
CommiterKatsuhiko Nishimra

Log Message

Description for NaN error

git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1109 1136aad2-a195-0410-b898-f5ea1d11b9d8

Change Summary

Incremental Difference

--- a/src/optimization/BFGS.cpp
+++ b/src/optimization/BFGS.cpp
@@ -63,7 +63,7 @@ void BFGS::SetMessages(){
6363 this->errorMessageGeometyrOptimizationNotConverged
6464 = "Error in optimization::BFGS::Optimize: Optimization did not met convergence criterion.\n";
6565 this->errorMessageNaNInRFOStep
66- = "Error in optimization::BFGS::Optimize: RFO step has gone NaN.\n";
66+ = "Error in optimization::BFGS::Optimize: RFO step has gone NaN. (lambda * s[%d] = %e, lambda = %e, alpha = %e)\n";
6767 this->messageStartBFGSStep = "\n========== START: BFGS step ";
6868 }
6969
@@ -305,7 +305,8 @@ void BFGS::CalcRFOStep(double* vectorStep,
305305 // See Eq. (4) in [EPW_1997].
306306 vectorStep[i] = matrixAugmentedHessian[0][i] / matrixAugmentedHessian[0][dimension] / alpha;
307307 if(isnan(vectorStep[i])){
308- throw MolDSException(this->errorMessageNaNInRFOStep);
308+ throw MolDSException(boost::format(this->errorMessageNaNInRFOStep)
309+ % i % matrixAugmentedHessian[0][i] % matrixAugmentedHessian[0][dimension] % alpha);
309310 }
310311 }
311312 //