Adaptive control of a dynamic system using genetic-based methods