This document is archived and information here might be outdated.  Recommended version.


esriNAViolatedConstraints Constants (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Constants > E > esriNAViolatedConstraints Constants
ArcGIS Developer Help

esriNAViolatedConstraints Constants

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.
esriNAViolationOrderInboundOutboundTimes 32768 Order InboundArriveTime or OutboundDepartTime violation.
esriNAViolationOrderAnchor 65536 Anchor first/last AssignmentRule violation.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

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.

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.