The LP Procedure |
This example demonstrates the use of the MPSOUT= option to convert problem data in PROC LP input format into an MPS-format SAS data set for use with the OPTLP procedure.
Consider the oil blending problem introduced in the section "An Introductory Example". Suppose you have saved the problem data in dense format by using the following DATA step:
data exdata; input _id_ $17. a_light a_heavy brega naphthal naphthai heatingo jet_1 jet_2 _type_ $ _rhs_; datalines; profit -175 -165 -205 0 0 0 300 300 max . naphtha_l_conv .035 .030 .045 -1 0 0 0 0 eq 0 naphtha_i_conv .100 .075 .135 0 -1 0 0 0 eq 0 heating_o_conv .390 .300 .430 0 0 -1 0 0 eq 0 recipe_1 0 0 0 0 .3 .7 -1 0 eq 0 recipe_2 0 0 0 .2 0 .8 0 -1 eq 0 available 110 165 80 . . . . . upperbd . ;
If you decide to solve the problem by using the OPTLP procedure, you will need to convert the data set exdata from dense format to MPS format. You can accomplish this by using the following statements:
proc lp data=exdata mpsout=mpsdata; run;
The MPS-format SAS data set mpsdata is shown in Output 3.15.1.
Output 3.15.1: Data Set mpsdataNow that the problem data is in MPS format, you can solve the problem by using the OPTLP procedure. For more information, see Chapter 15, "The OPTLP Procedure."
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.