Chapter Contents |
Previous |
Next |
The LP Procedure |
%sasmpsxs(mpsfile="c:\or\model.mps",lpdata=lp); data; set lp; retain i=1; if _type_="FREE" and i=1 then do; _type_="MIN"; i=0; end; run; proc lp sparsedata; run;
In the MPS input format, all objective functions, price change rows, and free rows have the type N. The SASMPSXS macro marks them as FREE rows. After the conversion, you must run a DATA step to identify the objective rows and price change rows. In this example, assume that the problem is one of minimization and the first FREE row is an objective row.
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.