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


NAODCostMatrixSolver CoClass (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

NAODCostMatrixSolver CoClass

Performs origin-destination matrix analysis.

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.
INAODCostMatrixSolver Provides access to the origin-destination matrix solver.
INAODCostMatrixSolver2 Provides access to the OD cost matrix 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.
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 Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile.
IPersistStream (esriSystem)
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.
IXMLSerialize (esriSystem) Provides access to members that XML serialize and deserialize an object to/from XML.

Remarks

NAODCostMatrixSolver is a Network Analyst solver that finds the shortest path distances between a set of origins and destinations. It can minimize the shortest path on any suitable cost attribute 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 destinations to compute from any origin by either specifying a maximum number of destinations to find or by specifying a cutoff value. For example, compute distances from a set of origins to, at the most, three destinations that are within 10 Km. It can also generate straight-line geometries connecting each origin-destination pair. The NAODCostMatrixSolver honors all of the settings of the INASolverSettings interface.