您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

消耗模型Consumption model

路由服务提供了一组用于特定于车辆的消耗模型详细说明的参数。The Routing service provides a set of parameters for a detailed description of the vehicle-specific Consumption Model. 根据 vehicleEngineType 的值,支持以下两种主要消耗模型:燃烧和电气****____。Depending on the value of vehicleEngineType, two principal Consumption Models are supported: Combustion and Electric. 指定属于同一请求中不同模型的参数是不正确的。It's incorrect to specify parameters that belong to different models in the same request. 此外,消耗模型参数不能与以下travelMode值一起使用:自行车_和_行人Also, Consumption Model parameters can't be used with the following travelMode values: bicycle and pedestrian.

消耗模型的参数约束Parameter constraints for consumption model

在这两种消耗模型中,指定参数时有一些依赖关系。In both Consumption Models, there are some dependencies when specifying parameters. 这意味着,显式指定某些参数可能需要指定其他一些参数。Meaning that, explicitly specifying some parameters may require specifying some other parameters. 下面是要注意的这些依赖项:Here are these dependencies to be aware of:

  • 所有参数均要求用户指定 constantSpeedConsumption****。All parameters require constantSpeedConsumption to be specified by the user. 如果未指定constantSpeedConsumption ,则指定任何其他消耗模型参数是错误的。It is an error to specify any other consumption model parameter, if constantSpeedConsumption is not specified. VehicleWeight参数是此要求的例外情况。The vehicleWeight parameter is an exception for this requirement.
  • accelerationEfficiencydecelerationEfficiency必须始终指定为成对(即,或 none)。accelerationEfficiency and decelerationEfficiency must always be specified as a pair (that is, both or none).
  • 如果指定了 accelerationEfficiency 和 decelerationEfficiency,两者值的乘积不得大于 1(防止出现永恒运动)********。If accelerationEfficiency and decelerationEfficiency are specified, product of their values must not be greater than 1 (to prevent perpetual motion).
  • uphillEfficiencydownhillEfficiency必须始终指定为成对(即,或 none)。uphillEfficiency and downhillEfficiency must always be specified as a pair (that's, both or none).
  • 如果指定了 uphillEfficiency 和 downhillEfficiency,两者值的乘积不得大于 1(防止出现永恒运动)********。If uphillEfficiency and downhillEfficiency are specified, product of their values must not be greater than 1 (to prevent perpetual motion).
  • 如果用户指定了 *Efficiency 参数,还必须指定“vehicleWeight”参数____****。If the *Efficiency parameters are specified by the user, then vehicleWeight must also be specified. 如果 vehicleEngineType 为燃料,则还必须指定 fuelEnergyDensityInMJoulesPerLiter****__****。When vehicleEngineType is combustion, fuelEnergyDensityInMJoulesPerLiter must be specified as well.
  • maxChargeInkWhcurrentChargeInkWh必须始终指定为成对(即,或 none)。maxChargeInkWh and currentChargeInkWh must always be specified as a pair (that is, both or none).

备注

如果仅指定了 constantSpeedConsumption,消耗计算不会考虑其他任何消耗(如爬坡和车辆加速)****。If only constantSpeedConsumption is specified, no other consumption aspects like slopes and vehicle acceleration are taken into account for consumption computations.

燃料消耗模型Combustion consumption model

如果将 vehicleEngineType 设置为“燃烧”,则使用燃烧消耗模型****__。The Combustion Consumption Model is used when vehicleEngineType is set to combustion. 下面是属于此模型的参数列表。The list of parameters that belong to this model are below. 参阅“参数”部分,获取详细说明。Refer to the Parameters section for detailed description.

  • constantSpeedConsumptionInLitersPerHundredkmconstantSpeedConsumptionInLitersPerHundredkm
  • vehicleWeightvehicleWeight
  • currentFuelInLiterscurrentFuelInLiters
  • auxiliaryPowerInLitersPerHourauxiliaryPowerInLitersPerHour
  • fuelEnergyDensityInMJoulesPerLiterfuelEnergyDensityInMJoulesPerLiter
  • accelerationEfficiencyaccelerationEfficiency
  • decelerationEfficiencydecelerationEfficiency
  • uphillEfficiencyuphillEfficiency
  • downhillEfficiencydownhillEfficiency

电力消耗模型Electric consumption model

如果将 vehicleEngineType 设置为“电气”,则使用电气消耗模型****__。The Electric Consumption Model is used when vehicleEngineType is set to electric. 下面是属于此模型的参数列表。The list of parameters that belong to this model are below. 参阅“参数”部分,获取详细说明。Refer to the Parameters section for detailed description.

  • constantSpeedConsumptionInkWhPerHundredkmconstantSpeedConsumptionInkWhPerHundredkm
  • vehicleWeightvehicleWeight
  • currentChargeInkWhcurrentChargeInkWh
  • maxChargeInkWhmaxChargeInkWh
  • auxiliaryPowerInkWauxiliaryPowerInkW
  • accelerationEfficiencyaccelerationEfficiency
  • decelerationEfficiencydecelerationEfficiency
  • uphillEfficiencyuphillEfficiency
  • downhillEfficiencydownhillEfficiency

合理的消耗参数值Sensible values of consumption parameters

可以拒绝一组特定的消耗参数,即使该集可能满足所有显式要求。A particular set of consumption parameters can be rejected, even though the set might fulfill all the explicit requirements. 如果特定参数的值或多个参数的值的组合导致使用值的度不合理,则会发生这种情况。It happens when the value of a specific parameter, or a combination of values of several parameters, is considered to lead to unreasonable magnitudes of consumption values. 如果出现此情况,则很可能是存在输入错误,应当注意调整所有合理的消耗参数值。If that happens, it most likely indicates an input error, as proper care is taken to accommodate all sensible values of consumption parameters. 如果一组特定消耗参数遭到拒绝,随之而来的错误消息会解释其原因。In case a particular set of consumption parameters is rejected, the accompanying error message will contain a textual explanation of the reason(s). 参数的详细说明中包含两种模型的合理值的示例。The detailed descriptions of the parameters have examples of sensible values for both models.