Repository navigation
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(...); |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
How can I look at the candidates for each generation of the population and their chromosomes?
All reactions