ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/optimization/Problem.hpp
(Generate patch)

Comparing branches/development/src/optimization/Problem.hpp (file contents):
Revision 1741 by gezelter, Tue Jun 5 18:02:44 2012 UTC vs.
Revision 1750 by gezelter, Thu Jun 7 12:53:46 2012 UTC

# Line 68 | Line 68 | namespace QuantLib {
68  
69          void setCurrentValue(const DynamicVector<RealType>& currentValue) {
70              currentValue_=currentValue;
71 <            statusFunction_.writeStatus();
71 >            statusFunction_.writeStatus(functionEvaluation_,
72 >                                        gradientEvaluation_,
73 >                                        currentValue_,
74 >                                        functionValue_);
75          }
76  
77          //! current value of the local minimum
# Line 134 | Line 137 | namespace QuantLib {
137      
138      inline void Problem::reset() {
139          functionEvaluation_ = gradientEvaluation_ = 0;
140 <        functionValue_ = squaredNorm_ = NULL;
140 >        functionValue_ = squaredNorm_ = 0;
141      }
142      
143   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines