Replaced bit operator with logical operator.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1397106 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2012-10-11 15:18:07 +00:00
parent d1ea9a6fb7
commit 91be760415
1 changed files with 2 additions and 1 deletions

View File

@ -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.