ArcObjects Library Reference (NetworkAnalyst)  

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(
  long* 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