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

Comparing branches/development/src/optimization/Armijo.cpp (file contents):
Revision 1741 by gezelter, Tue Jun 5 18:02:44 2012 UTC vs.
Revision 1875 by gezelter, Fri May 17 14:41:42 2013 UTC

# Line 32 | Line 32 | namespace QuantLib {
32          Constraint& constraint = P.constraint();
33          succeed_=true;
34          bool maxIter = false;
35 <        RealType qtold, t = t_ini;
36 <        size_t loopNumber = 0;
35 >        RealType t = t_ini;
36 >
37          
38          RealType q0 = P.functionValue();
39          RealType qp0 = P.gradientNormValue();
# Line 51 | Line 51 | namespace QuantLib {
51          
52          // Enter in the loop if the criterion is not satisfied
53          if ((qt_-q0) > -alpha_*t*qpt_) {
54 +            RealType qtold;
55 +            size_t loopNumber = 0;
56              do {
57                  loopNumber++;
58                  // Decrease step

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines