ElectricVehicleConsumption
Creates an ElectricVehicleConsumption with the specified auxiliaryPower and speedConsumption.
Parameters
auxiliaryPower
The amount of power required for sustaining auxiliary systems, averaged over the route duration. It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
speedConsumption
The speed-dependent component of consumption. It is provided as a piecewise linear function mapping speed to consumption. All consumption values as well as the extrapolated values for speeds outside the provided range must be positive.
Throws
if any consumption values are invalid.