#include #include #include #include #include #include float Objective(GAGenome &); int main(int argc, char **argv) { cout << "This program finds the optimum of the function\n"; cout << "f(x1,x2)=1.9*(1.35+exp(x1)*sin(13*(x1-0.6)^2)*exp(-x2)*sin(7*x2))\n"; cout << "in the domain (x1,x2) in ([0,1],[0,1]) using a SimpleGA \n\n"; // 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