Automatic Algorithm Selection for Complex Simulation