candidates and chromosomes #8
huahuav587
started this conversation in
General
Replies: 1 comment 1 reply
-
The old populations are normally discarded after each generation, but you can collect them using a callback function, std::vector<Population<RealGene>> populations;
RCGA rcga;
rcga.on_generation_end([&](const GaInfo& ga)
{
const auto& population = static_cast<const RCGA&>(ga).population();
populations.push_back(population);
});
// rcga.solve(...); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I look at the candidates for each generation of the population and their chromosomes?
Beta Was this translation helpful? Give feedback.
All reactions