--- branches/development/src/optimization/Problem.hpp 2012/06/05 18:02:44 1741 +++ branches/development/src/optimization/Problem.hpp 2012/06/07 12:53:46 1750 @@ -68,7 +68,10 @@ namespace QuantLib { void setCurrentValue(const DynamicVector& currentValue) { currentValue_=currentValue; - statusFunction_.writeStatus(); + statusFunction_.writeStatus(functionEvaluation_, + gradientEvaluation_, + currentValue_, + functionValue_); } //! current value of the local minimum @@ -134,7 +137,7 @@ namespace QuantLib { inline void Problem::reset() { functionEvaluation_ = gradientEvaluation_ = 0; - functionValue_ = squaredNorm_ = NULL; + functionValue_ = squaredNorm_ = 0; } }