/* ---------------------------------------------------------------------------- ex25.C mbwall jan96 Copyright (c) 1995-1996 Massachusetts Institute of Technology DESCRIPTION: This example shows how to do multiple populations on a single CPU. ---------------------------------------------------------------------------- */ #include #include #include #include float Objective(GAGenome &); int main(int argc, char** argv) { cout << "Example 25\n\n"; cout << "This example uses a genetic algorithm with multiple populations.\n"; cout << endl; // See if we've been given a seed to use (for testing purposes). When you // specify a random seed, the evolution will be exactly the same each time // you use that seed number. unsigned int seed = 0; for(int ii=1; ii