Question: / * * * Homework 8 Program * * * / * Always check the log after running a program. This allows you to identify
Homework Program
Always check the log after running a program. This allows
you to identify errors;
RUN the libname statement first;
To create a library;
libname BUADhomeusasuservBUAD;
Example : A Sparse View of the Oil Blending Problem
title 'Example ;
data oil;
format type $col $row $ ;
input type $ col $ row $ coef ;
datalines;
max profit
arabianlight profit
arabianheavy profit
brega profit
jet profit
jet profit
eq naphalconv
arabianlight naphalconv
arabianheavy naphalconv
brega naphalconv
naphthalight naphalconv
eq naphaiconv
arabianlight naphaiconv
arabianheavy naphaiconv
brega naphaiconv
naphthainter naphaiconv
eq heatingoilconv
arabianlight heatingoilconv
arabianheavy heatingoilconv
brega heatingoilconv
heatingoil heatingoilconv
eq recipe
naphthainter recipe
heatingoil recipe
jet recipe
eq recipe
naphthalight recipe
heatingoil recipe
jet recipe
rhs profit
upperbd available
arabianlight available
arabianheavy available
brega available
;
proc lp SPARSEDATA;
run;
Example : Sensitivity Analysis: Changes in Objective Coefficients
title 'Example ;
data oil;
format type $col $row $ ;
input type $ col $ row $ coef ;
datalines;
max profit
arabianlight profit
arabianheavy profit
brega profit
jet profit
jet profit
eq naphalconv
arabianlight naphalconv
arabianheavy naphalconv
brega naphalconv
naphthalight naphalconv
eq naphaiconv
arabianlight naphaiconv
arabianheavy naphaiconv
brega naphaiconv
naphthainter naphaiconv
eq heatingoilconv
arabianlight heatingoilconv
arabianheavy heatingoilconv
brega heatingoilconv
heatingoil heatingoilconv
eq recipe
naphthainter recipe
heatingoil recipe
jet recipe
eq recipe
naphthalight recipe
heatingoil recipe
jet recipe
rhs profit
upperbd available
arabianlight available
arabianheavy available
brega available
;
proc lp SPARSEDATA
rangeprice primaloutsolution;
run;
proc print datasolution;
run;
Example : Additional Sensitivity Analysis
title 'Example a;
data sen;
format type $col $row $;
input type $ col $ row $ coef;
datalines;
pricesen change
arabianlight change
arabianheavy change
brega change
jet change
jet change
;
data;
set oil sen;
run;
proc lp sparsedata primalinsolution;
run;
title 'Example b;
data oil;
format type $col $row $ ;
input type $ col $ row $ coef ;
datalines;
max profit
arabianlight profit
arabianheavy profit
brega profit
jet profit
jet profit
eq naphalconv
arabianlight naphalconv
arabianheavy naphalconv
brega naphalconv
naphthalight naphalconv
eq naphaiconv
arabianlight naphaiconv
arabianheavy naphaiconv
brega naphaiconv
naphthainter naphaiconv
eq heatingoilconv
arabianlight heatingoilconv
arabianheavy heatingoilconv
brega heatingoilconv
heatingoil heatingoilconv
eq recipe
naphthainter recipe
heatingoil recipe
jet recipe
eq recipe
naphthalight recipe
heatingoil recipe
jet recipe
rhs profit
upperbd available
arabianlight available
arabianheavy available
brega available
pricesen change
arabianlight change
arabianheavy change
brega change
jet change
jet change
;
proc lp sparsedata primalinsolution;
run;
Example : Price Parametric Programming for the Oil Blending Problem
title 'Example ;
data sen;
format type $col $row $;
input type $ col $ row $ coef;
datalines;
pricesen change
arabianlight change
arabianheavy change
brega change
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
