Powertrain Optimization Software for Electric Vehicles