mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Hadrons: scheduler debug less verbose
This commit is contained in:
parent
480708b9a0
commit
90f4000935
@ -130,7 +130,7 @@ void GeneticScheduler<V, T>::nextGeneration(void)
|
|||||||
{
|
{
|
||||||
initPopulation();
|
initPopulation();
|
||||||
}
|
}
|
||||||
LOG(Debug) << "Starting population:\n" << *this << std::endl;
|
//LOG(Debug) << "Starting population:\n" << *this << std::endl;
|
||||||
|
|
||||||
// random mutations
|
// random mutations
|
||||||
//PARALLEL_FOR_LOOP
|
//PARALLEL_FOR_LOOP
|
||||||
@ -138,7 +138,7 @@ void GeneticScheduler<V, T>::nextGeneration(void)
|
|||||||
{
|
{
|
||||||
doMutation();
|
doMutation();
|
||||||
}
|
}
|
||||||
LOG(Debug) << "After mutations:\n" << *this << std::endl;
|
//LOG(Debug) << "After mutations:\n" << *this << std::endl;
|
||||||
|
|
||||||
// mating
|
// mating
|
||||||
//PARALLEL_FOR_LOOP
|
//PARALLEL_FOR_LOOP
|
||||||
@ -146,14 +146,14 @@ void GeneticScheduler<V, T>::nextGeneration(void)
|
|||||||
{
|
{
|
||||||
doCrossover();
|
doCrossover();
|
||||||
}
|
}
|
||||||
LOG(Debug) << "After mating:\n" << *this << std::endl;
|
//LOG(Debug) << "After mating:\n" << *this << std::endl;
|
||||||
|
|
||||||
// grim reaper
|
// grim reaper
|
||||||
auto it = population_.begin();
|
auto it = population_.begin();
|
||||||
|
|
||||||
std::advance(it, par_.popSize);
|
std::advance(it, par_.popSize);
|
||||||
population_.erase(it, population_.end());
|
population_.erase(it, population_.end());
|
||||||
LOG(Debug) << "After grim reaper:\n" << *this << std::endl;
|
//LOG(Debug) << "After grim reaper:\n" << *this << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// evolution steps /////////////////////////////////////////////////////////////
|
// evolution steps /////////////////////////////////////////////////////////////
|
||||||
|
@ -549,7 +549,7 @@ VirtualMachine::Program VirtualMachine::schedule(const GeneticPar &par)
|
|||||||
gen = 0;
|
gen = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
LOG(Debug) << "Generation " << gen << ":" << std::endl;
|
//LOG(Debug) << "Generation " << gen << ":" << std::endl;
|
||||||
scheduler.nextGeneration();
|
scheduler.nextGeneration();
|
||||||
if (gen != 0)
|
if (gen != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user