The LP Procedure |
Often managers want to evaluate the cost of making a choice among alternatives. In particular, they want to make the most profitable choice. Suppose that only one oil crude can be used in the production process. This identifies a set of variables of which only one can be above its lower bound. This additional restriction could be included in the model by adding a binary integer variable for each of the three crudes. Constraints would be needed that would drive the appropriate binary variable to 1 whenever the corresponding crude is used in the production process. Then a constraint limiting the total of these variables to only one would be added. A similar formulation for a fixed charge problem is shown in Example 3.8.
The SOSLE type implicitly does this. The following DATA step adds a row to the model that identifies which variables are in the set. The SOSLE type tells the LP procedure that only one of the variables in this set can be above its lower bound. If you use the SOSEQ type, it tells PROC LP that exactly one of the variables in the set must be above its lower bound. Only integer variables can be in an SOSEQ set.
data special; format _type_ $6. _col_ $14. _row_ $8. ; input _type_ $ _col_ $ _row_ $ _coef_; datalines; SOSLE . special . . arabian_light special 1 . arabian_heavy special 1 . brega special 1 ; data; set oil special; run; proc lp sparsedata; run;
Output 3.6.1 includes an Integer Iteration Log. This log shows the progress that PROC LP is making in solving the problem. This is discussed in some detail in Example 3.8.
Output 3.6.1: The Oil Blending Problem with a Special Ordered SetThe LP Procedure
|
The solution shows that only the ARABIAN_LIGHT crude is purchased. The requirement that only one crude be used in the production is met, and the profit is 1276. This tells you that the value of purchasing crude from an additional source, namely BREGA, is worth 1544 - 1276 = 268.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.