Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Network Analyst toolbox > Analysis toolset > Tools

Solve (Network Analyst)

Release 9.3
Last modified December 23, 2008
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Performs the analysis appropriate to the network analysis layer on which it is executed


Usage tips

Command line syntax
An overview of the Command Line window
Solve_na <in_network_analysis_layer> {SKIP | HALT}

Parameter Explanation Data Type
<in_network_analysis_layer>

The network analysis layer on which analysis will be computed.

Network Analyst Layer
{SKIP | HALT}

Invalid stops are those that cannot be reached by a solve. These occur when the stops are not near an edge or fall on a restricted edge.

  • SKIP — Solve even if there are some locations, such as stops, facilities, incidents, origins, or destinations, that are not valid. This is the default.
  • HALT — Do not solve if there are invalid stops. The user can then correct these and rerun the analysis.
If the input network analysis layer parameter is a vehicle routing problem layer, the solve tool will always use the HALT option as the vehicle routing problem solver requires that the invalid locations are not ignored.

Boolean
Data types for geoprocessing tool parameters


Command line example

Solve MyNetworkAnalysisLayer HALT

Scripting syntax
About getting started with writing geoprocessing scripts
Solve_na (in_network_analysis_layer, ignore_invalids)

Parameter Explanation Data Type
in_network_analysis_layer (Required)

The network analysis layer on which analysis will be computed.

Network Analyst Layer
ignore_invalids (Optional)

Invalid stops are those that cannot be reached by a solve. These occur when the stops are not near an edge or fall on a restricted edge.

  • SKIP — Solve even if there are some locations, such as stops, facilities, incidents, origins, or destinations, that are not valid. This is the default.
  • HALT — Do not solve if there are invalid stops. The user can then correct these and rerun the analysis.
If the input network analysis layer parameter is a vehicle routing problem layer, the solve tool will always use the HALT option as the vehicle routing problem solver requires that the invalid locations are not ignored.

Boolean

Data types for geoprocessing tool parameters


Script example

# Solve_halt.py
# Description: Solve on a network, unless there are invalid stops
# Author: ESRI

# Create the Geoprocessor
import arcgisscripting
gp = arcgisscripting.create()

# Set the workspace
gp.workspace = "d:/workspace"

# Run the command
gp.Solve(MyNetworkAnalysisLayer, "HALT")

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.