Violated constraints status.
Constant | Value | Description |
---|---|---|
esriNAViolationMaxOrderCount | 1 | Route MaxOrderCount constraint violation. |
esriNAViolationCapacities | 2 | Route Capacities constraint violation. |
esriNAViolationMaxTotalTime | 4 | Route MaxTotalTime constraint violation. |
esriNAViolationMaxTotalTravelTime | 8 | Route MaxTotalTravelTime constraint violation. |
esriNAViolationMaxTotalDistance | 16 | Route MaxTotalDistance constraint violation. |
esriNAViolationHardTimeWindow | 32 | Order, depot, or break hard time window constraint violation. |
esriNAViolationSpecialties | 64 | Specialties required by an order were not found on the target route(s). |
esriNAViolationZone | 128 | Order does not fall within the hard route zone of the target route(s). |
esriNAViolationOrderPairMaxTransitTime | 256 | Order pair MaxTransitTime constraint violation. |
esriNAViolationOrderPairOther | 512 | Order cannot be routed due to constraint violation on paired order. |
esriNAViolationUnreachable | 1024 | Order is unreachable from some depot or other order. |
esriNAViolationBreakRequired | 2048 | Break could not be inserted along target route without introducing constraint violations. |
esriNAViolationRenewalRequired | 4096 | Renewal could not be inserted along target route without introducing constraint violations. |
esriNAViolationBreakMaxTravelTime | 8192 | Break maximum travel time violation. |
esriNAViolationBreakMaxWorkTime | 16384 | Break maximum work time violation. |
Product Availability
Remarks
The values within this enumeration are used to populate information on constraint violations involving orders and routes within a VRP problem instance. These values are stored in the ViolatedConstraints fields on the Orders and Routes NAClasses within a VRP NAContext.
ViolatedConstraints field values on the Orders and Routes NAClasses identify all constraint violations associated with a given order or route feature, respectively, by specifying a combination of bits defined in esriNAViolatedConstraints.
The valid values for this field are 1 - 16383. Each bit represents one of the enumeration settings in esriNAViolatedConstraints.
- esriNAViolationMaxOrderCount - this value indicates a violation of a route's MaxOrderCount property
- esriNAViolationCapacities - this value indicates a violation of a route's Capacities property
- esriNAViolationMaxTotalTime - this value indicates a violation of a route's MaxTotalTime property
- esriNAViolationMaxTotalTravelTime - this value indicates a violation of a route's MaxTotalTravelTime property
- esriNAViolationMaxTotalDistance - this value indicates a violation of a route's MaxTotalDistance property
- esriNAViolationHardTimeWindow - this value indicates a hard time window violation on an order, depot, or break
- esriNAViolationSpecialties - this value indicates that the specialties required by an order were not found on the target route(s)
- esriNAViolationZone - this value indicates that an order does not fall within a hard route zone
- esriNAViolationOrderPairMaxTransitTime - this value indicates that an order belongs to an order pair and violates the pair's MaxTransitTime property
- esriNAViolationOrderPairOther - this value indicates that an order belongs to an order pair and is unrouted because the other order has some violation
- esriNAViolationUnreachable - this value indicates there is an unreachable depot or other order from a particular start depot or order
- esriNAViolationBreakRequired - this value indicates there is a break assigned to a route which cannot be added to the route without introducing violations
- esriNAViolationRenewalRequired - this value indicates there is a route renewal assigned to a route with capacity violations which cannot be added to the route without introducing violations
- esriNAViolationBreakMaxTravelTime - this value indicates there is a violation of a break's MaxTravelTimeBetweenBreaks property
Thus, for example, if an order feature was unable to be routed because it violated all available route capacities and also violated all available route zones, then the ViolatedConstraints field value for that order feature would be esriNAViolationCapacities + esriNAViolationZone (i.e., 2 + 128), which would equal 130.