Each table that the OPTNET procedure creates has a name associated with it, and you must use this name to refer to the table when you use ODS statements. These names are listed in Table 2.34.
Table 2.34: ODS Tables Produced by PROC OPTNET
Table Name |
Description |
Required Statement or Option |
---|---|---|
PerformanceInfo |
Information about the computing environment |
Default output |
ProblemSummary |
Summary of the graph (or matrix) input |
Default output |
SolutionSummary |
For each algorithm, summary of the solution status |
Default output |
Timing |
Detailed real times for each phase of the procedure |
PERFORMANCE with DETAILS option |
The following code uses the example in the section Traveling Salesman Problem Applied to a Simple Undirected Graph and calculates both an optimal traveling salesman tour and a minimum spanning tree. This code produces all four ODS output tables listed in Table 2.34.
data LinkSetIn; input from $ to $ weight @@; datalines; A B 1.0 A C 1.0 A D 1.5 B C 2.0 B D 4.0 B E 3.0 C D 3.0 C F 3.0 C H 4.0 D E 1.5 D F 3.0 D G 4.0 E F 1.0 E G 1.0 F G 2.0 F H 4.0 H I 3.0 I J 1.0 C J 5.0 F J 3.0 F I 1.0 H J 1.0 ;
proc optnet loglevel = moderate data_links = LinkSetIn out_nodes = NodeSetOut; mst out = MST; tsp out = TSP; run; %put &_OROPTNET_; %put &_OROPTNET_TSP_; %put &_OROPTNET_MST_;
The problem summary table in Figure 2.79 provides a basic summary of the graph (or matrix) input.
Figure 2.79: Problem Summary Table
The solution summary tables in Figure 2.80 and Figure 2.81 provide a basic solution summary for each algorithm that is processed. The information in these tables matches the information that is provided in the macro variables for each algorithm, described in the section Macro Variables.
Figure 2.80: Solution Summary Table for MST
Figure 2.81: Solution Summary Table for TSP