[shark] 05/06: applied CMA test fix of master
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Aug 8 08:29:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository shark.
commit 9c1ee4e7f522778844e605acdae2531db8976353
Author: Oswin Krause <oswin.krause at di.ku.dk>
Date: Wed May 18 18:22:24 2016 +0200
applied CMA test fix of master
---
Test/Algorithms/DirectSearch/CMA.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Test/Algorithms/DirectSearch/CMA.cpp b/Test/Algorithms/DirectSearch/CMA.cpp
index 2b26626..3c68321 100644
--- a/Test/Algorithms/DirectSearch/CMA.cpp
+++ b/Test/Algorithms/DirectSearch/CMA.cpp
@@ -71,6 +71,7 @@ BOOST_AUTO_TEST_CASE( CMA_Ellipsoid_Niko )
BOOST_AUTO_TEST_CASE( CMA_Sphere_Niko )
{
+ Rng::seed(42)
const unsigned N = 10;
RealVector x0(10, 0.1);
Sphere sphere(N);
@@ -85,7 +86,7 @@ BOOST_AUTO_TEST_CASE( CMA_Sphere_Niko )
for(unsigned i=0; i<1500; i++) {
cma.step( sphere );
if(cma.sigma() > 0.01) sigmaHigh = true;
- if(cma.condition() > 10) condHigh = true;
+ if(cma.condition() > 20) condHigh = true;
}
BOOST_CHECK(cma.solution().value < 1E-9);
BOOST_CHECK(sigmaHigh);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/shark.git
More information about the debian-science-commits
mailing list