Vehicle Routing Problem Solver Properties (arcpy)

Summary

The following properties are supported by the network analyst solver object when working with the vehicle routing problem solver. Note that the distance cost attribute can be obtained from the accumulators property on the describe object.

Properties

PropertyExplanationData Type
timeFieldUnits
(Read Only)

The time units used by the temporal fields of the network analysis layer's sublayers and tables (network analysis classes). This property returns the following keywords:

  • Minutes
  • Seconds
  • Hours
  • Days

String
distanceFieldUnits
(Read Only)

The distance units used by distance fields of the network analysis layer's sublayers and tables (network analysis classes). This property returns the following keywords:

  • Miles
  • Kilometers
  • Feet
  • Yards
  • Meters
  • Inches
  • Centimeters
  • Millimeters
  • Decimeters
  • NauticalMiles

String
defaultDate
(Read Only)

The implied date for time field values that don't have a date specified with the time.

String
capacityCount
(Read Only)

The number of capacity constraint dimensions required to describe the relevant limits of the vehicles.

Integer
timeWindowViolationPenaltyFactor
(Read Only)

Indicates how the solver rates the importance of honoring time windows without causing violations. This property returns the following keywords:

  • Low
  • Medium
  • High
  • Custom

String
timeWindowViolationPenaltyFactorValue
(Read Only)

The value used as the penalty factor for time window violation in the objective function.

Double
excessTransitTimePenaltyFactor
(Read Only)

Indicates how the solver rates the importance of reducing excess transit time. This property returns the following keywords:

  • Low
  • Medium
  • High
  • Custom

String
excessTransitTimePenaltyFactorValue
(Read Only)

The value used as the penalty factor for excess transit time in the objective function.

Double
vrpRoutesShape
(Read Only)

The shape type for the route features that are output by the solver. This property returns the following keywords:

  • TRUE_LINES_WITHOUT_MEASURES
  • TRUE_LINES_WITH_MEASURES
  • NO_LINES
  • STRAIGHT_LINES

String
3/3/2014