We have four types of refined oils and we need to blend (some of) them into...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
We have four types of refined oils and we need to blend (some of) them into three types of gasoline to maximize profit. Type of oil available quantity barrel 5000 2400 Brent Blend(BB) MediumOils (MO) WestTexas (WT) LightOils (LO) Type of gasoline price $/barrel 12 A B C 18 10 4000 1500 min oil type ΜΟ WT price $/barrel 97 12 6 max % oil type % 20 MO 30 40 ΜΟ 50 # Blending data #set OILTYPE := BB MO WT LO; #set GASOLINES: A B C; param: OILTYPE: BB MO WT LO param a :- BB 5000 MO 2400 WT 4000 LO 1500 ; param: GASOLINES: A B C param Q - WT A 0.3 MO C 0.5 ; param q = MO A 0.2 WT B 0.4 ; US7 с 9 12 6; P :- 12 18 10; param p[GASOLINES} >=0; #unit selling price of gasolines param Q{OILTYPE, GASOLINES} >-0, <1, default 1; #Q[i,j] is the maximum fraction of type i oil #that can be used when making gasoline j param qfi in OILTYPE, j in GASOLINES} >=0, <= Q[i, j], default 0; #q[i,j] is the minimum fraction of type i oil #that must be used when making gasoline j # VARS var x {OILTYPE, GASOLINES} >= 0; var y {GASOLINES}; var z{i in OILTYPE}, <= a[i]; # OBJECTIVE FUNCTION maximize totalprofit: #x[i,j] is the amount of type i oil used to make gasoline j #amounts of gasolins produced #amounts of oils used in the process sum{j in GASOLINES} p[j] *y[j] # CONSTRAINTS subject to usedoil{i in OILTYPE}: sum{j in GASOLINES} x[i,j] = z[i]; sum {i in OILTYPE} c[i] * z[i]; #subject to availabilityfi in OILTYPE}: #z[i]<= a[i]; subject to conservation{j in GASOLINES}: sum{i in OILTYPE} x[i,j] = y[j]; subject to maxlimit{i in OILTYPE, j in GASOLINES}: x[i, j] <= Q[i,j] * y[j]; subject to minrequirement {i in OILTYPE, j in GASOLINES}: q[i, j]y[j]; x[i, j] # execution option solver cplex; data blending.dat; solve; display {i in OILTYPE, j in GASOLINES: x[i,j]>0} x[i,j]; display{j in GASOLINES: y[j]>0} y[j]; display {i in OILTYPE: z[i]>0} z[i]; 1) Modify the blending model and data file. Assume that you also have $2000 to buy additional barrels of oil. On the market there are 1000 barrels of Medium Oil, and 1000 barrels of Brent blend available at the same price we used in the model. Extend the model to answer the question: given our initial stock as before, how much extra of these oils should we buy and how much of the different gasoline types should we make to maximize our profit? 2) Modify the model further: assume a storage cost of 1 cent/barrel has to be paid for oil not used for production. We have four types of refined oils and we need to blend (some of) them into three types of gasoline to maximize profit. Type of oil available quantity barrel 5000 2400 Brent Blend(BB) MediumOils (MO) WestTexas (WT) LightOils (LO) Type of gasoline price $/barrel 12 A B C 18 10 4000 1500 min oil type ΜΟ WT price $/barrel 97 12 6 max % oil type % 20 MO 30 40 ΜΟ 50 # Blending data #set OILTYPE := BB MO WT LO; #set GASOLINES: A B C; param: OILTYPE: BB MO WT LO param a :- BB 5000 MO 2400 WT 4000 LO 1500 ; param: GASOLINES: A B C param Q - WT A 0.3 MO C 0.5 ; param q = MO A 0.2 WT B 0.4 ; US7 с 9 12 6; P :- 12 18 10; param p[GASOLINES} >=0; #unit selling price of gasolines param Q{OILTYPE, GASOLINES} >-0, <1, default 1; #Q[i,j] is the maximum fraction of type i oil #that can be used when making gasoline j param qfi in OILTYPE, j in GASOLINES} >=0, <= Q[i, j], default 0; #q[i,j] is the minimum fraction of type i oil #that must be used when making gasoline j # VARS var x {OILTYPE, GASOLINES} >= 0; var y {GASOLINES}; var z{i in OILTYPE}, <= a[i]; # OBJECTIVE FUNCTION maximize totalprofit: #x[i,j] is the amount of type i oil used to make gasoline j #amounts of gasolins produced #amounts of oils used in the process sum{j in GASOLINES} p[j] *y[j] # CONSTRAINTS subject to usedoil{i in OILTYPE}: sum{j in GASOLINES} x[i,j] = z[i]; sum {i in OILTYPE} c[i] * z[i]; #subject to availabilityfi in OILTYPE}: #z[i]<= a[i]; subject to conservation{j in GASOLINES}: sum{i in OILTYPE} x[i,j] = y[j]; subject to maxlimit{i in OILTYPE, j in GASOLINES}: x[i, j] <= Q[i,j] * y[j]; subject to minrequirement {i in OILTYPE, j in GASOLINES}: q[i, j]y[j]; x[i, j] # execution option solver cplex; data blending.dat; solve; display {i in OILTYPE, j in GASOLINES: x[i,j]>0} x[i,j]; display{j in GASOLINES: y[j]>0} y[j]; display {i in OILTYPE: z[i]>0} z[i]; 1) Modify the blending model and data file. Assume that you also have $2000 to buy additional barrels of oil. On the market there are 1000 barrels of Medium Oil, and 1000 barrels of Brent blend available at the same price we used in the model. Extend the model to answer the question: given our initial stock as before, how much extra of these oils should we buy and how much of the different gasoline types should we make to maximize our profit? 2) Modify the model further: assume a storage cost of 1 cent/barrel has to be paid for oil not used for production. We have four types of refined oils and we need to blend (some of) them into three types of gasoline to maximize profit. Type of oil available quantity barrel 5000 2400 Brent Blend(BB) MediumOils (MO) WestTexas (WT) LightOils (LO) Type of gasoline price $/barrel 12 A B C 18 10 4000 1500 min oil type ΜΟ WT price $/barrel 97 12 6 max % oil type % 20 MO 30 40 ΜΟ 50 # Blending data #set OILTYPE := BB MO WT LO; #set GASOLINES: A B C; param: OILTYPE: BB MO WT LO param a :- BB 5000 MO 2400 WT 4000 LO 1500 ; param: GASOLINES: A B C param Q - WT A 0.3 MO C 0.5 ; param q = MO A 0.2 WT B 0.4 ; US7 с 9 12 6; P :- 12 18 10; param p[GASOLINES} >=0; #unit selling price of gasolines param Q{OILTYPE, GASOLINES} >-0, <1, default 1; #Q[i,j] is the maximum fraction of type i oil #that can be used when making gasoline j param qfi in OILTYPE, j in GASOLINES} >=0, <= Q[i, j], default 0; #q[i,j] is the minimum fraction of type i oil #that must be used when making gasoline j # VARS var x {OILTYPE, GASOLINES} >= 0; var y {GASOLINES}; var z{i in OILTYPE}, <= a[i]; # OBJECTIVE FUNCTION maximize totalprofit: #x[i,j] is the amount of type i oil used to make gasoline j #amounts of gasolins produced #amounts of oils used in the process sum{j in GASOLINES} p[j] *y[j] # CONSTRAINTS subject to usedoil{i in OILTYPE}: sum{j in GASOLINES} x[i,j] = z[i]; sum {i in OILTYPE} c[i] * z[i]; #subject to availabilityfi in OILTYPE}: #z[i]<= a[i]; subject to conservation{j in GASOLINES}: sum{i in OILTYPE} x[i,j] = y[j]; subject to maxlimit{i in OILTYPE, j in GASOLINES}: x[i, j] <= Q[i,j] * y[j]; subject to minrequirement {i in OILTYPE, j in GASOLINES}: q[i, j]y[j]; x[i, j] # execution option solver cplex; data blending.dat; solve; display {i in OILTYPE, j in GASOLINES: x[i,j]>0} x[i,j]; display{j in GASOLINES: y[j]>0} y[j]; display {i in OILTYPE: z[i]>0} z[i]; 1) Modify the blending model and data file. Assume that you also have $2000 to buy additional barrels of oil. On the market there are 1000 barrels of Medium Oil, and 1000 barrels of Brent blend available at the same price we used in the model. Extend the model to answer the question: given our initial stock as before, how much extra of these oils should we buy and how much of the different gasoline types should we make to maximize our profit? 2) Modify the model further: assume a storage cost of 1 cent/barrel has to be paid for oil not used for production. We have four types of refined oils and we need to blend (some of) them into three types of gasoline to maximize profit. Type of oil available quantity barrel 5000 2400 Brent Blend(BB) MediumOils (MO) WestTexas (WT) LightOils (LO) Type of gasoline price $/barrel 12 A B C 18 10 4000 1500 min oil type ΜΟ WT price $/barrel 97 12 6 max % oil type % 20 MO 30 40 ΜΟ 50 # Blending data #set OILTYPE := BB MO WT LO; #set GASOLINES: A B C; param: OILTYPE: BB MO WT LO param a :- BB 5000 MO 2400 WT 4000 LO 1500 ; param: GASOLINES: A B C param Q - WT A 0.3 MO C 0.5 ; param q = MO A 0.2 WT B 0.4 ; US7 с 9 12 6; P :- 12 18 10; param p[GASOLINES} >=0; #unit selling price of gasolines param Q{OILTYPE, GASOLINES} >-0, <1, default 1; #Q[i,j] is the maximum fraction of type i oil #that can be used when making gasoline j param qfi in OILTYPE, j in GASOLINES} >=0, <= Q[i, j], default 0; #q[i,j] is the minimum fraction of type i oil #that must be used when making gasoline j # VARS var x {OILTYPE, GASOLINES} >= 0; var y {GASOLINES}; var z{i in OILTYPE}, <= a[i]; # OBJECTIVE FUNCTION maximize totalprofit: #x[i,j] is the amount of type i oil used to make gasoline j #amounts of gasolins produced #amounts of oils used in the process sum{j in GASOLINES} p[j] *y[j] # CONSTRAINTS subject to usedoil{i in OILTYPE}: sum{j in GASOLINES} x[i,j] = z[i]; sum {i in OILTYPE} c[i] * z[i]; #subject to availabilityfi in OILTYPE}: #z[i]<= a[i]; subject to conservation{j in GASOLINES}: sum{i in OILTYPE} x[i,j] = y[j]; subject to maxlimit{i in OILTYPE, j in GASOLINES}: x[i, j] <= Q[i,j] * y[j]; subject to minrequirement {i in OILTYPE, j in GASOLINES}: q[i, j]y[j]; x[i, j] # execution option solver cplex; data blending.dat; solve; display {i in OILTYPE, j in GASOLINES: x[i,j]>0} x[i,j]; display{j in GASOLINES: y[j]>0} y[j]; display {i in OILTYPE: z[i]>0} z[i]; 1) Modify the blending model and data file. Assume that you also have $2000 to buy additional barrels of oil. On the market there are 1000 barrels of Medium Oil, and 1000 barrels of Brent blend available at the same price we used in the model. Extend the model to answer the question: given our initial stock as before, how much extra of these oils should we buy and how much of the different gasoline types should we make to maximize our profit? 2) Modify the model further: assume a storage cost of 1 cent/barrel has to be paid for oil not used for production.
Expert Answer:
Answer rating: 100% (QA)
Answer 1 We can modify the blending model and data file to accommodate the additional barrels of oil We can add two additional columns to the data file one for the quantity of Medium Oil and one for t... View the full answer
Related Book For
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba
Posted Date:
Students also viewed these mathematics questions
-
Consider the Deadlock Avoidance problem. Suppose we have four types of resources: 9 of type-A, 3 of type-B and 6 of type-C. In the current state, maximum resources are needed, and the resources...
-
Sam Ltd purchased 92% of the issued shares(Ex div)of Rex Ltd for $1404000 on 1 July 2019 when the equity of Rex Ltd was as follows; Share capital Asset revaluation surpluss Retained earnings 210600...
-
Accounting March February 6 7 8 9 Master Schedule for Day-Glo Solar Panels January 1 2. 3 4 5 120 95 100 120 135 140 102 125 115 120 165Solar panel product structure tree 1 Solar Panel Week...
-
29. According to cognitive dissonance theory, why do people change their attitudes to match their behaviour? (1 Point) People guess their attitude from the O behaviour they see themselves performing...
-
Determine which of the following statements are true and which are false. Prove the true ones and provide counterexamples for the false ones. a) If xn and yn -, then xn + yn 0 as n . b) If xn ,...
-
The controller wants to prepare a chart of monthly operating income from the past two years. What chart would likely be most appropriate? a. Line chart b. Bar chart c. Scatter plot d. Pie chart
-
Refer to Example 1. How large a sample of wind turbines is needed to ensure that, with at least \(95 \%\) confidence, the error in our estimate of the sample proportion is at most 0.06 if (a) nothing...
-
1. What are the important factors Joseph should consider prior to deciding if the airline contract would be a good one for the hotel? 2. Under what conditions might Joseph tell his revenue manager to...
-
Dunphy Company issued $28,000 of 6.0%, 10-year bonds at par value on January 1. Interest is paid semiannually each June 30 and December 31. Analyze transactions by showing their effects on the...
-
Were the payments to Alan protected by the business judgment rule? Years ago, Harry Lippman purchased Despatch Industries, Inc., which manufactured hardware for cabinets. His son, James, worked for...
-
Liquid ethanol is a flammable fluid that has a flashpoint at 16.6C. At temperatures above the flashpoint, ethanol can release vapors that form explosive mixtures, which could ignite when source of...
-
The top ten business schools in the United States for a recent year according to Forbes are listed. 1. Stanford 2. Harvard 3. Northwestern (Kellogg) 4. Columbia 5. Dartmouth (Tuck) 6. Chicago (Booth)...
-
Olympics The number of gold, silver, and bronze medals awarded at the 2008 Olympic Games are listed. 301 302 349 Determine whether the data are qualitative or quantitative, and determine the level of...
-
The items below appear on a movie rating website. Determine the level of measurement of the data for each category. (a) Year of release (b) Number of awards won (c) Genre (d) Star rating Determine...
-
Forty-two professors in Pennsylvania were surveyed concerning their opinions of the current education policy of the state. Identify the population and the sample. Describe the sample data set.
-
What do you think about the battery backup of the mobile phone? Determine whether the survey question is biased. If the question is biased, suggest a better wording.
-
How does a first-mover firm's ability to develop logistics and acquire raw material ahead of competitors impact success?
-
Presented below are income statements prepared on a LIFO and FIFO basis for Kenseth Company, which started operations on January 1, 2024. The company presently uses the LIFO method of pricing its...
-
Subsistence Levels of Consumption: Suppose you are interested in modeling a policy issue involving poor households in an under-developed country. A: The households we are trying to model are...
-
In the labor market, we can also talk about responsiveness or elasticity with respect to wages (and other prices) on both the demand and supply sides. A: For each of the following statements,...
-
Pricing Call and Put Options: In the text we mentioned contracts called call and put options as examples of somewhat more sophisticated ways in which one can take a short or long position in the...
-
The number on the jersey of each New York Giants football player is recorded, then the mean of those numbers is computed. Decide whether the statement makes sense (or is clearly true) or does not...
-
A professor calculates final grades using a weighted mean in which the final exam counts twice as much as the midterm. Decide whether the statement makes sense (or is clearly true) or does not make...
-
The following ages (years) of survey respondents: 22, 19, 21, 27, over 65, over 80. State whether the mean or median would give a better description of the average. Explain your reasoning.
Study smarter with the SolutionInn App