ArcObjects Library Reference (NetworkAnalyst)  

NALocationAllocationSolver CoClass

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
INALocationAllocationSolver 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.
INASolverSettings Provides access to settings common to all solvers.
INASolverSettings2 Provides access to settings common to all solvers.
IPersistStream (esriSystem)
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.

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.