Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
gasol/ga.h
✓ #include <gasol/ga.h>
Configure and run a genetic algorithm with default parameters.
#include <gasol/ga.h>
#include <iostream>
int main() {
gasol::GA ga;
ga.setPopulationSize(100);
ga.setMutationRate(0.01);
ga.setCrossoverRate(0.8);
ga.setGenerations(50);
ga.run();
std::cout << "Best fitness: " << ga.getBestFitness() << std::endl;
return 0;
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2018-01-04latest on vcpkg
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.