You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2021/07/17 12:21:55 UTC
[commons-math] 01/04: Nit.
This is an automated email from the ASF dual-hosted git repository.
erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git
commit d13aec9b34dada4f684a5943311568279af1cd39
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Sat Jul 17 01:25:08 2021 +0200
Nit.
---
.../nonlinear/scalar/noderiv/MultiDirectionalTransform.java | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/MultiDirectionalTransform.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/MultiDirectionalTransform.java
index fa1c849..e7ae9e5 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/MultiDirectionalTransform.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/MultiDirectionalTransform.java
@@ -64,14 +64,12 @@ public class MultiDirectionalTransform
final PointValuePair best = original.get(0);
// Perform a reflection step.
- final Simplex reflectedSimplex = transform(original,
- 1);
+ final Simplex reflectedSimplex = transform(original, 1);
final PointValuePair reflectedBest = reflectedSimplex.get(0);
if (comparator.compare(reflectedBest, best) < 0) {
// Compute the expanded simplex.
- final Simplex expandedSimplex = transform(original,
- gamma);
+ final Simplex expandedSimplex = transform(original, gamma);
final PointValuePair expandedBest = expandedSimplex.get(0);
return comparator.compare(reflectedBest, expandedBest) <= 0 ?
@@ -79,8 +77,7 @@ public class MultiDirectionalTransform
expandedSimplex;
} else {
// Compute the contracted simplex.
- return transform(original,
- rho);
+ return transform(original, rho);
}
};
}