commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1141884 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizer.java
Date Fri, 01 Jul 2011 09:13:36 GMT
Author: luc
Date: Fri Jul  1 09:13:36 2011
New Revision: 1141884

URL: http://svn.apache.org/viewvc?rev=1141884&view=rev
Log:
removed unused variable

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizer.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizer.java?rev=1141884&r1=1141883&r2=1141884&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizer.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizer.java
Fri Jul  1 09:13:36 2011
@@ -149,15 +149,10 @@ public class NonLinearConjugateGradientO
                 }
             }
 
-            double dTd = 0;
-            for (final double di : searchDirection) {
-                dTd += di * di;
-            }
-
             // Find the optimal step in the search direction.
             final UnivariateRealFunction lsf = new LineSearchFunction(searchDirection);
             final double uB = findUpperBound(lsf, 0, initialStep);
-            // XXX Last parameters is set to a value clode to zero in order to
+            // XXX Last parameters is set to a value close to zero in order to
             // work around the divergence problem in the "testCircleFitting"
             // unit test (see MATH-439).
             final double step = solver.solve(maxEval, lsf, 0, uB, 1e-15);



Mime
View raw message