Optimization of Electric Vehicle Autonomy