Automatic Algorithm Selection for Complex Simulation Problems