Update generate_optimal_configs.sh