|
Chapter Contents |
Previous |
Next |
| Introduction to Optimization |
The GCHART procedure can be a useful tool for displaying the solution to mathematical programming models. The con_solv data set that contains the solution to the balanced transshipment problem can be effectively displayed using PROC GCHART. In Figure 1.23, the amount that is shipped from each factory and warehouse can be seen by submitting the following:
title;
proc gchart data=con_sav;
hbar from / sumvar=_flow_;
run;
|
The horizontal bar chart is just one way of displaying the solution to a mathematical program. The solution to the Tie Product Mix problem that was solved using PROC LP can also be illustrated using PROC GCHART. Here, a pie chart shows the relative contribution of each product to total revenues.
proc gchart data=product;
pie _var_ / sumvar=revenue;
title 'Projected Tie Sales Revenue';
run;
|
The TABULATE procedure is another procedure that can help automate solution reporting. There are several examples in the chapter on teh LP procedure that illustrate its use.
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.