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


NALocationAllocationSolver Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Classes > N > NALocationAllocationSolver Class
ArcGIS Developer Help

NALocationAllocationSolverClass Class

Solves various location-allocation problem types

Product Availability

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

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
IClone (esriSystem) Provides access to members that control cloning of objects.
INALocationAllocationSolver Provides access to the location-allocation solver.
INALocationAllocationSolver2 Provides access to the location-allocation solver.
INASolver Provides access to the common interface for all network solvers.
INASolverForwardStar Creates a network dataset forward star which honors the current solver settings as well as any barriers.
INASolverOutputGeneralization Provides access to generalization parameters used on solver output.
INASolverOverrides Overrides for implementation settings.
INASolverSettings Provides access to settings common to all solvers.
INASolverSettings2 Provides access to settings common to all solvers.
INASolverSettings3 Provides access to settings common to all solvers.
INATimeAwareSolverSettings Provides access to settings common to all time-aware solvers.
INATimeAwareSolverSettings2 Provides access to settings common to all time-aware solvers.
IPersist (esriSystem)
IPersistStream (esriSystem)
ISupportErrorInfo (esriSystem)
IXMLSerialize (esriSystem) Provides access to members that XML serialize and deserialize an object to/from XML.

Remarks

NALocationAllocationSolver is a Network Analyst solver that finds the best set of locations to which a set of demand points can be allocated based on the shortest path distances. The goal of picking the best set depends on the type of problem to be solved such as minimize weighted impedance, maximize coverage, etc. It can find the best set of locations minimizing the shortest path on any suitable cost attribute scaled as needed based on the impedance transformation and write the results to an in-memory feature class, which can then be exported to a table. It has options to limit the number of facilities to compute or find the optimal number needed based on a cutoff value.

For example, location-allocation can be used to find the minimum number of facilities needed to cover the maximum number of demand locations within a 4 minute travel time. It can also generate straight-line geometries connecting each facility-demand point pair. The NALocationAllocationSolver honors all of the settings of the INASolverSettings interface.