Converting to an MPS-Format SAS Data Set (lp15)
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: lp15 */
/* TITLE: Converting to an MPS-Format SAS Data Set (lp15) */
/* PRODUCT: OR */
/* SYSTEM: ALL */
/* KEYS: LP */
/* PROCS: LP */
/* DATA: */
/* */
/* SUPPORT: UPDATE: */
/* REF: */
/* MISC: Example 15 from the LP Procedure chapter of */
/* Mathematical Programming Legacy Procedures. */
/* */
/****************************************************************/
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 .
;
proc lp data=exdata mpsout=mpsdata;
run;
proc print data=mpsdata;
run;