Applies CMA-ES for optimization