Multi-objective powertrain optimization of cost and autonomy for electric vehicles