Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum E_Selection : int
- {
- roulette,
- tournament
- };
- struct Population
- {
- public:
- //int generation;
- float maxFitness;
- float minFitness;
- float avgFitness;
- float totalFitness;
- int numElites; //bästa boisen
- float crossRate;
- float mutRate;
- float mutMax;
- std::string name;
- E_Selection selection;
- std::vector<Gene> genes;
- };
- struct Gene
- {
- public:
- float fitness;
- int index;
- std::vector<float> weight;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement