ArcObjects Library Reference (NetworkAnalyst)  

INASolver Interface

Provides access to the common interface for all network solvers.

Product Availability

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


Method Bind Re-associate the solver with the given network dataset and its schema.
Read-only property CanAccumulateAttributes Indicates if the solver supports using accumulate network attributes.
Read-only property CanUseHierarchy Indicates if the solver supports using a hierarchy network attribute.
Read-only property ClassDefinitions The inputs and outputs defined by the solver.
Method CreateContext Creates the analysis context for the solver.
Method CreateLayer Makes a new network analysis layer for the solver context.
Read-only property DisplayName The display name of the solver.
Read-only property Name The name of the solver.
Read-only property Properties The properties for the solver.
Method Solve Perform the network analysis and construct results.
Method UpdateContext Update the analysis context for the solver.
Method UpdateLayer Updates the layer and indicates if the layer was updated.

CoClasses that implement INASolver

CoClasses and Classes Description
NAClosestFacilitySolver Performs closest facility analysis.
NALocationAllocationSolver Solves various location-allocation problem types
NAODCostMatrixSolver Performs origin-destination matrix analysis.
NARouteSolver Performs shortest path and tour analysis.
NAServiceAreaSolver Performs service area analysis.
NAVRPSolver Performs VRP network analysis.


The INASolver interface is a common interface used by all of the network solvers. It can be used to access some of the standard properties from the solver.  It is also used to create NAContext and NALayer objects and to perform the actual network analysis.

.NET Snippets

Create Vehicle Routing Problem Layer | Set OD Cost Matrix Properties | Statements - Set Solver Properties | Statements - Set Route Properties | Set Route Properties | Create Route Layer | Create Service Area Layer | Set Vehicle Routing Problem Properties | Set Service Area Properties | Create Closest Facility Layer | Set Service Area Properties2 | Statements - Set OD Cost Matrix Properties | Statements - Set Service Area Properties | Create OD Cost Matrix Layer | Create Location Allocation Layer | Set Solver Properties

.NET Samples

Closest facility solver (Code Files: frmClosestFacilitySolver) | ArcGIS Network Analyst extension Engine application (Code Files: frmNALayerProperties) | Service area solver (Code Files: frmServiceAreaSolver) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Vehicle routing problem solver (Code Files: frmVRPSolver) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Subset network evaluators (Code Files: SubsetHelperUI) | Route layer (Code Files: Program)

.NET Related Topics

How to set up an ArcGIS Network Analyst extension solve to work with the undo/redo stack