|
Chapter Contents |
Previous |
Next |
| The TRANS Procedure |
This example shows what happens when the total demand exceeds the total supply. The data from Example 6.1 are used with the demand at Atlanta increased to 100 units. Consequently, the demand exceeds the supply by 50 units. When the statements
proc trans cost=cst;
TAILNODE city;
HEADNODE Atlanta--Washingt;
supply supply;
run;
are executed, the following message is written to the SAS log:
ERROR: Infeasible network. Total supply 510 does not equal
total demand 560.
Use either the THRUNET or the NOTHRUNET option
on the PROC TRANS statement.
However, if the THRUNET option is specified in the PROC TRANS statement, the procedure distributes the supply optimally among the source nodes. In that case, the statements
title 'Using the THRUNET Option';
proc trans data=cst THRUNET;
TAILNODE city;
HEADNODE Atlanta--Washingt;
supply supply;
run;
proc print;
run;
produce the following message on the SAS log and display the solution in Output 6.4.1.
NOTE: Optimal Solution Total = 18302.Output 6.4.1: Using the THRUNET Option
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.