commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erwan Bousse (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1057) BOBYQAOptimizerTest has two failing tests
Date Mon, 20 Jan 2014 08:27:20 GMT

    [ https://issues.apache.org/jira/browse/MATH-1057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13876248#comment-13876248
] 

Erwan Bousse commented on MATH-1057:
------------------------------------

Hello,

Sorry to post a message on this Resolved bug, but I appear to have the exact same problem
with commons-math3-3.2. Here are the interesting parts of my Maven output:
------------------------------------------------------------------------------------------
testDiffPow(org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizerTest) 
Time elapsed: 2.662 sec  <<< ERROR!
org.apache.commons.math3.exception.TooManyEvaluationsException: illegal state: maximal count
(12,000) exceeded: evaluations
	at org.apache.commons.math3.optim.BaseOptimizer$MaxEvalCallback.trigger(BaseOptimizer.java:213)
	at org.apache.commons.math3.util.Incrementor.incrementCount(Incrementor.java:156)
	at org.apache.commons.math3.optim.BaseOptimizer.incrementEvaluationCount(BaseOptimizer.java:162)
	at org.apache.commons.math3.optim.nonlinear.scalar.MultivariateOptimizer.computeObjectiveValue(MultivariateOptimizer.java:115)
	at org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer.bobyqb(BOBYQAOptimizer.java:823)
	at org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer.bobyqa(BOBYQAOptimizer.java:329)
	at org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer.doOptimize(BOBYQAOptimizer.java:241)
	at org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer.doOptimize(BOBYQAOptimizer.java:49)
	at org.apache.commons.math3.optim.BaseOptimizer.optimize(BaseOptimizer.java:143)
	at org.apache.commons.math3.optim.BaseMultivariateOptimizer.optimize(BaseMultivariateOptimizer.java:66)
	at org.apache.commons.math3.optim.nonlinear.scalar.MultivariateOptimizer.optimize(MultivariateOptimizer.java:64)
	at org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizerTest.doTest(BOBYQAOptimizerTest.java:322)
	at org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizerTest.doTest(BOBYQAOptimizerTest.java:282)
	at org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizerTest.testDiffPow(BOBYQAOptimizerTest.java:187)

testDiffPow(org.apache.commons.math3.optimization.direct.BOBYQAOptimizerTest)  Time elapsed:
2.907 sec  <<< ERROR!
org.apache.commons.math3.exception.TooManyEvaluationsException: illegal state: maximal count
(12,000) exceeded: evaluations
	at org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer.computeObjectiveValue(BaseAbstractMultivariateOptimizer.java:108)
	at org.apache.commons.math3.optimization.direct.BOBYQAOptimizer.bobyqb(BOBYQAOptimizer.java:828)
	at org.apache.commons.math3.optimization.direct.BOBYQAOptimizer.bobyqa(BOBYQAOptimizer.java:334)
	at org.apache.commons.math3.optimization.direct.BOBYQAOptimizer.doOptimize(BOBYQAOptimizer.java:246)
	at org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer.optimizeInternal(BaseAbstractMultivariateOptimizer.java:206)
	at org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer.optimize(BaseAbstractMultivariateOptimizer.java:145)
	at org.apache.commons.math3.optimization.direct.BOBYQAOptimizerTest.doTest(BOBYQAOptimizerTest.java:326)
	at org.apache.commons.math3.optimization.direct.BOBYQAOptimizerTest.doTest(BOBYQAOptimizerTest.java:281)
	at org.apache.commons.math3.optimization.direct.BOBYQAOptimizerTest.testDiffPow(BOBYQAOptimizerTest.java:186)

testAckley(org.apache.commons.math3.optimization.direct.BOBYQAOptimizerTest)  Time elapsed:
0.025 sec  <<< FAILURE!
java.lang.AssertionError: expected:<0.0> but was:<1.047765607609108E-8>
	at org.junit.Assert.fail(Assert.java:93)
	at org.junit.Assert.failNotEquals(Assert.java:647)
	at org.junit.Assert.assertEquals(Assert.java:443)
	at org.apache.commons.math3.optimization.direct.BOBYQAOptimizerTest.doTest(BOBYQAOptimizerTest.java:336)
	at org.apache.commons.math3.optimization.direct.BOBYQAOptimizerTest.doTest(BOBYQAOptimizerTest.java:281)
	at org.apache.commons.math3.optimization.direct.BOBYQAOptimizerTest.testAckley(BOBYQAOptimizerTest.java:208)



testAckley(org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizerTest)  Time
elapsed: 0.025 sec  <<< FAILURE!
java.lang.AssertionError: expected:<0.0> but was:<1.047765607609108E-8>
	at org.junit.Assert.fail(Assert.java:93)
	at org.junit.Assert.failNotEquals(Assert.java:647)
	at org.junit.Assert.assertEquals(Assert.java:443)
	at org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizerTest.doTest(BOBYQAOptimizerTest.java:338)
	at org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizerTest.doTest(BOBYQAOptimizerTest.java:282)
	at org.apache.commons.math3.optim.nonlinear.scalar.noderiv.BOBYQAOptimizerTest.testAckley(BOBYQAOptimizerTest.java:209)


Failed tests: 
  BOBYQAOptimizerTest.testAckley:208->doTest:281->doTest:336 expected:<0.0> but
was:<1.047765607609108E-8>
  BOBYQAOptimizerTest.testAckley:209->doTest:282->doTest:338 expected:<0.0> but
was:<1.047765607609108E-8>

Tests in error: 
  BOBYQAOptimizerTest.testDiffPow:186->doTest:281->doTest:326 » TooManyEvaluations
  BOBYQAOptimizerTest.testDiffPow:187->doTest:282->doTest:322 » TooManyEvaluations
------------------------------------------------------------------------------------------

I am using Fedora 20 x86_64 with kernel 3.12.7 and with java-1.7.0-openjdk-1.7.0.60-2.4.4.1.fc20.x86_64.

> BOBYQAOptimizerTest has two failing tests
> -----------------------------------------
>
>                 Key: MATH-1057
>                 URL: https://issues.apache.org/jira/browse/MATH-1057
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.2
>         Environment: Mac OS X 10.9 and also Linux 3.4 kernel; Java 7; Maven 3.1.1
>            Reporter: Sean Owen
>            Priority: Minor
>             Fix For: 3.3
>
>         Attachments: MATH-1057.patch
>
>
> I see two test failures, in both the copies of BOBYQAOptimizerTest:
> {code}
> Failed tests: 
>   BOBYQAOptimizerTest.testAckley:209->doTest:282->doTest:338 expected:<0.0>
but was:<1.047765607609108E-8>
>   BOBYQAOptimizerTest.testAckley:208->doTest:281->doTest:336 expected:<0.0>
but was:<1.047765607609108E-8>
> Tests in error: 
>   BOBYQAOptimizerTest.testDiffPow:187->doTest:282->doTest:322 » TooManyEvaluations
>   BOBYQAOptimizerTest.testDiffPow:186->doTest:281->doTest:326 » TooManyEvaluations
> {code}
> (This predated the patches I've worked on so I don't think it's me!)
> I tried on Mac OS X and Linux and see the same, so don't think it is an environment issue.
I'll see if a little digging can uncover the issue from a recent commit.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message