ArcObjects Library Reference (NetworkAnalyst)  

INALocationAllocationSolver.NumberFacilitiesToLocate Property

Determines how many facilities will be present in the solution.

[Visual Basic .NET]
Public Property NumberFacilitiesToLocate As Integer
[C#]
public int NumberFacilitiesToLocate {get; set;}
[C++]
HRESULT get_NumberFacilitiesToLocate(
  long* Value
);
[C++]
HRESULT put_NumberFacilitiesToLocate(
  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

The NumberFacilitiesToLocate specifies how many facilities to locate from the existing facilities. Solving for 10 facilities will select the 10 best sites from the existing facilities. Facilities with esriNALocationAllocationFacilityType of esriNALAFTRequired will be chosen before facilities with a status of esriNALAFTCandidate are selected. An error is returned if the number of facilities to locate is less than the number of required facilities.

See Also

INALocationAllocationSolver Interface

.NET Snippets

Set Location Allocation Properties

.NET Samples

ArcGIS Network Analyst extension Engine application (Code Files: frmNALayerProperties) | Location-allocation solver (Code Files: frmLocationAllocationSolver)