diff --git a/CMakeLists.txt b/CMakeLists.txt index fef4c80..aa517e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(blt-gp VERSION 0.0.65) +project(blt-gp VERSION 0.0.66) include(CTest) diff --git a/include/blt/gp/program.h b/include/blt/gp/program.h index 7977938..81c8a22 100644 --- a/include/blt/gp/program.h +++ b/include/blt/gp/program.h @@ -309,7 +309,11 @@ namespace blt::gp } while (!thread_helper.evaluation_left.compare_exchange_weak(end, end - size, std::memory_order::memory_order_release, std::memory_order::memory_order_acquire)); - + + auto old_begin = begin; + begin = config.population_size - end; + end = config.population_size - old_begin; + for (blt::size_t i = begin; i < end; i++) { auto& ind = current_pop.get_individuals()[i];