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/08/22 00:33:34 UTC

[commons-math] 10/13: Relax expected number of evaluations (unit test).

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 14ebd9342675273c25e683b4fdd2b9eedbe9f7e7
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Sun Aug 22 01:10:04 2021 +0200

    Relax expected number of evaluations (unit test).
    
    Optimization is sensitive to the change from "AccurateMath" to "Math"
    for computing the "pow" function used in "TestFunction.SUM_POW".
---
 .../legacy/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java
index 45e4b29..98cc641 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java
@@ -185,7 +185,7 @@ public class BOBYQAOptimizerTest {
             new PointValuePair(OptimTestUtils.point(dim, 0.0), 0.0);
         doTest(TestFunction.SUM_POW.withDimension(dim), startPoint, boundaries,
                 GoalType.MINIMIZE,
-                1e-8, 1e-1, 21000, expected);
+                1e-8, 1e-1, 21720, expected);
     }
 
     @Test