Unstable ordinary differential equations: solution via genetic algorithms and the method of Nelder-Mead