Summary
Creates breaks in a Vehicle Routing Problem (VRP) layer.
Usage
This tool will append rows to the Breaks sublayer under the VRP layer, and you can add all five breaks to a route at the same time. If the break schedule is the same for all routes, all breaks can be added to all the routes at once.
If the Target Route Name parameter value is not specified, breaks are created for each existing route.
To delete all existing breaks and create new breaks, check the Append To Existing Routes parameter checkbox(append_to_existing_breaks = "CLEAR" in Python).
Only one type of break can be added to a VRP; leave the other types of break values unspecified in the tool parameters.
Syntax
arcpy.na.AddVehicleRoutingProblemBreaks(in_vrp_layer, {target_route}, {break_type}, {time_window_properties}, {travel_time_properties}, {work_time_properties}, {append_to_existing_breaks})
Parameter | Explanation | Data Type |
in_vrp_layer | The vehicle routing problem analysis layer to which the breaks will be added. | Network Analyst Layer |
target_route (Optional) | The route for the break parameters. If this parameter is not specified, breaks are created for each existing route. | String |
break_type (Optional) | Specifies the type of breaks for the current VRP layer. All breaks must be of the same type.
| String |
time_window_properties [time_window_properties,...] (Optional) | Specifies a time range within which the break will begin. To set up a time window break, use two time-of-day values. The options below are enabled when the Break Type parameter is set to Time Window Break.
| Value Table |
travel_time_properties [travel_time_properties,...] (Optional) | Specifies how long a person can drive before the break is required. The properties below are enabled when the Break Type parameter is set to Maximum Travel Time Break.
| Value Table |
work_time_properties [work_time_properties,...] (Optional) | Specifies how long a person can work before a break is required. The properties below are enabled when the Break Type parameter is set to Maximum Work Time Break.
| Value Table |
append_to_existing_breaks (Optional) | Specifies whether new breaks will be appended to the existing breaks attribute table.
| Boolean |
Derived Output
Name | Explanation | Data Type |
out_vrp_layer | The updated network analyst layer. | Network Analyst Layer |
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes