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:
parent
d1ea9a6fb7
commit
91be760415
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue