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


INAVRPSolver.CapacityCount Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAVRPSolver Interface > INAVRPSolver.CapacityCount Property
ArcGIS Developer Help

INAVRPSolver.CapacityCount Property

The number of dimensions for object sizes.

[Visual Basic .NET]
Public Property CapacityCount As Integer
[C#]
public int CapacityCount {get; set;}
[C++]
HRESULT get_CapacityCount(
  System.Int32* Value
);
[C++]
HRESULT put_CapacityCount(
  long Value
);
[C++]
Parameters
Value [out, retval]

Value is a parameter of type long* Value [in]
Value is a parameter of type long

Product Availability

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

Remarks

Capacities are used to model cumulative quantity constraints on the routes. These constraints typically arise from physical measurements and limit the total pickup and/or delivery quantities of orders associated with a route. The CapacityCount property specifies the number of different capacities that are being constrained. For example, if you are constraining weight and volume, the CapacityCount would be 2. Following this example, a route feature with its Capacities field value set to �2000 500� would indicate that it can transport a maximum weight of 2000 units (pounds) with a maximum volume of 500 units (cubic feet).  An order feature might have its DeliveryQuantities field value set to �10 5� indicating that the weight of the order is 10 and its volume is 5. 

The units for capacities are not specified in the VRP solver; furthermore, the ordering of the capacities in the string is arbitrary. This means that within a VRP analysis, capacities always need to be listed in the same sequence (in this example, weight and then volume) among all routes and orders.  The number of tokens in these strings cannot exceed the CapacityCount property value. 

See Also

INAVRPSolver Interface

.NET Samples

ArcGIS Network Analyst extension Engine application