|
名称
|
说明
|
数据类型
|
|
in_vrp_layer
|
将添加路径的车辆配送、最后一公里配送或废弃物收集分析图层。
|
Network Analyst Layer
|
|
number_of_routes
(可选)
|
将添加的路径数量。
|
Long
|
|
route_name_prefix
(可选)
|
将添加至每条路径名称的限定符。 例如,路径名称前缀 WeekdayRoute 将用作每个路径名称的起始文本,并在其后附加递增的数字后缀(例如 WeekdayRoute1、WeekdayRoute2,以此类推)。
|
String
|
|
start_depot_name
(可选)
|
路径的起始站点名称。
如果该值为空,则路径会将分配的第一个订单点作为起始点。 车辆的起始位置未知或者与问题不相关时,可以忽略起始站点。
对于车辆配送图层,如果该值为空,则 end_depot_name 参数值不能也为空。 对于最后一公里配送和废弃物收集图层,起始站点和终止站点可同时为空。
如果订单点或站点跨多个时区,则不允许使用虚拟起始站点。
|
String
|
|
end_depot_name
(可选)
|
路径的终止站点名称。
如果该值为空,则路径将在分配的最后一个订单点处结束。
对于车辆配送图层,如果该值为空,则 start_depot_name 参数值不能也为空。 对于最后一公里配送和废弃物收集图层,起始站点和终止站点可同时为空。
|
String
|
|
earliest_start_time
(可选)
|
车辆配送图层中路径允许的最早开始时间。
求解程序通过将该参数与起始站点的时间窗(在 Depots 子图层中由 TimeWindowStart 字段提供)结合使用来确定可行的路径开始时间。 该参数的默认仅时间值是 8:00:00 a.m.,即为分析图层 Default Date 属性提供的日期当天上午 8:00:00。 如果未指定任何值,则将使用默认值。
仅当输入图层为车辆配送图层时,此参数才适用。 如果输入图层具有不同的求解程序类型,则将忽略该值。
|
Date
|
|
latest_start_time
(可选)
|
车辆配送图层中路径允许的最晚开始时间。
该参数的默认仅时间值是 10:00:00 a.m.,即为分析图层 Default Date 属性提供的日期当天上午 10:00:00。 如果未指定任何值,则将使用默认值。
仅当输入图层为车辆配送图层时,此参数才适用。 如果输入图层具有不同的求解程序类型,则其将被忽略。
|
Date
|
|
max_order_count
(可选)
|
路径上允许的最大订单点数。 车辆配送图层的默认值为 30,最后一公里配送图层的默认值为空。 如果未指定任何值,则将使用默认值。
如果输入图层为废弃物收集图层,则此参数不适用并且将忽略其值。
|
Long
|
|
capacities
[capacities,...]
(可选)
|
车辆的最大收集量(体积、重量、数量等)。 空值等于零。 最多允许 9 个容量字段,但仅使用对车辆需求进行建模所需的数量。
如果输入图层为废弃物收集图层,则此参数不适用并且将忽略其值。
值表列:
Capacity_1—The first capacity field.
Capacity_2—The second capacity field.
Capacity_3—The third capacity field.
Capacity_4—The fourth capacity field.
Capacity_5—The fifth capacity field.
Capacity_6—The sixth capacity field.
Capacity_7—The seventh capacity field.
Capacity_8—The eight capacity field.
Capacity_9—The nine capacity field.
|
Value Table
|
|
route_constraints
[route_constraints,...]
(可选)
|
将对路径施加的限制,用于限制总时间、总行驶时间和总距离。
如果输入图层为废弃物收集图层,则此参数不适用并且将忽略其值。
值表列:
Max Total Time—The maximum allowable route duration. The route duration includes travel times as well as service and wait times at orders, depots, and breaks. Specify the value in the input layer's time units.
Max Total Travel Time—The maximum allowable travel time for the route. The travel time includes only the time spent driving on the network and does not include service or wait times. This field value can't be larger than the MaxTotalTime field value. Specify the value in the input layer's time units.
Max Total Distance—The maximum allowable travel distance for the route. Specify the value in the input layer's distance units.
|
Value Table
|
|
costs
[costs,...]
(可选)
|
解决方案中路径可能产生的成本。
如果输入图层为废弃物收集图层,则此参数不适用并且将忽略其值。
值表列:
Fixed Cost—A fixed monetary cost that is incurred only if the route is used in a solution (that is, it has orders assigned to it).
Cost Per Unit Time—The monetary cost incurred per unit of work time for the total route duration, including travel times and service and wait times at orders, depots, and breaks.
Cost Per Unit Distance—The monetary cost incurred per unit of distance traveled for the route length (total travel distance).
Overtime Start Time—The duration of regular work time before overtime computation begins.
Cost Per Unit Overtime—The monetary cost incurred per time unit of overtime work. This field can contain null values; a null value indicates that the Cost Per Unit Overtime value is the same as the Cost Per Unit Time value.
|
Value Table
|
|
additional_route_time
[additional_route_time,...]
(可选)
|
附件路径时间选项。
如果输入图层为废弃物收集图层,则此参数不适用并且将忽略其值。
值表列:
Start Depot Service Time—The service time at the starting depot. This can be used to model the time spent loading the vehicle.
End Depot Service Time—The service time at the ending depot. This can be used to model the time spent unloading the vehicle.
Arrive/Depart Delay—The amount of travel time needed to accelerate the vehicle to normal travel speeds, decelerate it to a stop, and move it off and on the network (for example, in and out of parking). By including an Arrive/Depart Delay value, the solver is deterred from sending many routes to service physically coincident orders.
|
Value Table
|
|
append_to_existing_routes
(可选)
|
指定是否将新的路径追加到现有路径属性表中。
|
Boolean
|
|
date_and_time
[date_and_time,...]
(可选)
|
最后一公里配送图层的附加日期和时间属性。
仅当输入图层为最后一公里配送图层时,此参数才适用。 如果输入图层具有不同的求解程序类型,则将忽略该值。
值表列:
Earliest Route Start Date—The earliest start date for added routes. If this property is not specified, the routes will use the layer's default earliest route start date.
Earliest Route Start Time—The earliest start time of day for added routes. If this property is not specified, the routes will use the layer's default earliest route start time.
Route Start Flexibility—Indicates how long after the earliest allowed route start time the route can start. The value can be zero, which means that there is no flexibility in the starting time, or a positive number. Specify the value in the input layer's time units.
|
Value Table
|
|
waste_capacities
[waste_capacities,...]
(可选)
|
废弃物收集图层中路径的容量。
仅当输入图层为废弃物收集图层时,此参数才适用。 如果输入图层具有不同的求解程序类型,则将忽略该值。
值表列:
MaxBins_1—The maximum number of waste bins for fraction 1 that the vehicle can collect before it must be emptied.
MaxWeight_1—The maximum physical weight for fraction 1 that the vehicle can collect before it must be emptied. Any weight units can be used for this value as long as the same units are used for all weight fields.
MaxVolume_1—The maximum volume for fraction 1 that the vehicle can collect before it must be emptied. Any volume units can be used for this value as long as the same units are used for all volume fields.
MaxBins_2—The maximum number of waste bins for fraction 2 that the vehicle can collect before it must be emptied.
MaxWeight_2—The maximum physical weight for fraction 2 that the vehicle can collect before it must be emptied. Any weight units can be used for this value as long as the same units are used for all weight fields.
MaxVolume_2—The maximum volume for fraction 2 that the vehicle can collect before it must be emptied. Any volume units can be used for this value as long as the same units are used for all volume fields.
|
Value Table
|
|
start_time
[start_time,...]
(可选)
|
废弃物收集图层的附加日期和时间属性。
可以使用 datetime.time 对象指定开始时间属性。
仅当输入图层为废弃物收集图层时,此参数才适用。 如果输入图层具有不同的求解程序类型,则将忽略该值。
值表列:
Start Time—The starting time for the route. If this property is not specified, the routes will use the layer's default start time.
Overtime Start Time—The duration of regular work time before overtime computation begins. A null value indicates that overtime does not apply. Specify the value in the input layer's time units.
|
Value Table
|
|
route_time_distance_constraints
[route_time_distance_constraints,...]
(可选)
|
将对路径施加的限制,用于限制总时间和距离。
仅当输入图层为废弃物收集图层时,此参数才适用。 如果输入图层具有不同的求解程序类型,则将忽略该值。
值表列:
Max Total Time—The maximum allowable route duration. The route duration includes travel times as well as service and wait times at stops, depots, and renewals. Specify the value in the input layer's time units.
Max Total Distance—The maximum allowable travel distance for the route. Specify the value in the input layer's distance units.
|
Value Table
|
|
depot_service_time
[depot_service_time,...]
(可选)
|
附件路径时间属性。
仅当输入图层为废弃物收集图层时,此参数才适用。 如果输入图层具有不同的求解程序类型,则将忽略该值。
值表列:
Start Depot Service Time—The service time at the starting depot. This can be used to model the time spent loading the vehicle.
End Depot Service Time—The service time at the ending depot. This can be used to model the time spent unloading the vehicle.
|
Value Table
|