|
Chapter Contents |
Previous |
Next |
| The TRANS Procedure |
Suppose you place a minimum on the flow within each city. Just as capacity restrictions can be interpreted as limits on available transportation, minimum flow restrictions can be interpreted as requirements to ship minimum quantities on certain routes, perhaps as a result of contractual agreements. The following program adds minimum flow requirements on four routes. Because the MINFLOW= data set contains many missing values, named input mode is used to input the data. The solution is displayed following the program in Output 6.3.1.
title 'Capacitated Transportation Network with MINFLOW';
data minflw;
input Chicago= Denver= San_Fran= Seattle= city= $;
datalines;
city=Chicago Chicago=30 San_Fran=40 Seattle=50
city=Denver Denver=40
;
proc trans cost=cst capacity=capcty minflow=minflw;
HEADNODE Atlanta--Washingt;
TAILNODE city;
supply supply;
run;
proc print;
run;
The SAS log contains the following message:
NOTE: Optimal Solution Total = 31458.Output 6.3.1: Capacitated Transportation Network Solution with MINFLOW
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.