[shark] 14/79: removed potentially hazardeous print-outs of iteration status which make up quite a big portion of runtime
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Nov 26 15:39:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository shark.
commit 3f06e8bfff93189aed781e4b3770714b71b88f90
Author: Oswin Krause <oswin.krause at di.ku.dk>
Date: Wed Oct 28 12:04:03 2015 +0100
removed potentially hazardeous print-outs of iteration status which make up quite a big portion of runtime
---
Test/Algorithms/DirectSearch/MOCMA.cpp | 2 +-
Test/Algorithms/DirectSearch/RealCodedNSGAII.cpp | 3 ++-
Test/Algorithms/DirectSearch/SteadyStateMOCMA.cpp | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Test/Algorithms/DirectSearch/MOCMA.cpp b/Test/Algorithms/DirectSearch/MOCMA.cpp
index 904b99f..89e0629 100644
--- a/Test/Algorithms/DirectSearch/MOCMA.cpp
+++ b/Test/Algorithms/DirectSearch/MOCMA.cpp
@@ -31,7 +31,7 @@ void testObjectiveFunctionMOO(
for(std::size_t i = 0; i != iterations; ++i){
mocma.step(f);
- std::clog<<"\r"<<i<<" "<<std::flush;
+ //~ std::clog<<"\r"<<i<<" "<<std::flush;
}
BOOST_REQUIRE_EQUAL(mocma.solution().size(), mu);
HypervolumeCalculator hyp;
diff --git a/Test/Algorithms/DirectSearch/RealCodedNSGAII.cpp b/Test/Algorithms/DirectSearch/RealCodedNSGAII.cpp
index ce4f606..9377c45 100644
--- a/Test/Algorithms/DirectSearch/RealCodedNSGAII.cpp
+++ b/Test/Algorithms/DirectSearch/RealCodedNSGAII.cpp
@@ -27,7 +27,8 @@ double testObjectiveFunctionMOOHelper(
for(std::size_t i = 0; i != iterations; ++i){
realCodedNSGAII.step(f);
- std::clog<<"\r"<<i<<" "<<std::flush;
+ //~ if(i%(iterations/100)==0)
+ //~ std::clog<<"\r"<<i<<" "<<std::flush;
}
BOOST_REQUIRE_EQUAL(realCodedNSGAII.solution().size(), mu);
HypervolumeCalculator hyp;
diff --git a/Test/Algorithms/DirectSearch/SteadyStateMOCMA.cpp b/Test/Algorithms/DirectSearch/SteadyStateMOCMA.cpp
index 4c60104..b445146 100644
--- a/Test/Algorithms/DirectSearch/SteadyStateMOCMA.cpp
+++ b/Test/Algorithms/DirectSearch/SteadyStateMOCMA.cpp
@@ -31,7 +31,7 @@ void testObjectiveFunctionMOO(
for(std::size_t i = 0; i != iterations; ++i){
mocma.step(f);
- std::clog<<"\r"<<i<<" "<<std::flush;
+ //~ std::clog<<"\r"<<i<<" "<<std::flush;
}
BOOST_REQUIRE_EQUAL(mocma.solution().size(), mu);
HypervolumeCalculator hyp;
--
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