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