Adaptive Compact Genetic Algorithm and Simulation