commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1397106 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/direct/SimplexOptimizer.java
Date Thu, 11 Oct 2012 15:18:07 GMT
Author: erans
Date: Thu Oct 11 15:18:07 2012
New Revision: 1397106

URL: http://svn.apache.org/viewvc?rev=1397106&view=rev
Log:
Replaced bit operator with logical operator.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/direct/SimplexOptimizer.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/direct/SimplexOptimizer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/direct/SimplexOptimizer.java?rev=1397106&r1=1397105&r2=1397106&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/direct/SimplexOptimizer.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/direct/SimplexOptimizer.java
Thu Oct 11 15:18:07 2012
@@ -162,7 +162,8 @@ public class SimplexOptimizer
                 boolean converged = true;
                 for (int i = 0; i < simplex.getSize(); i++) {
                     PointValuePair prev = previous[i];
-                    converged &= checker.converged(iteration, prev, simplex.getPoint(i));
+                    converged = converged &&
+                        checker.converged(iteration, prev, simplex.getPoint(i));
                 }
                 if (converged) {
                     // We have found an optimum.



Mime
View raw message