This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAVRPSolver Interface > INAVRPSolver.CapacityCount Property (ArcObjects .NET 10.5 SDK) |
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
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.