Linear Programming - Fuel mix EXCEL SOLVER

MistaMista

New Member
Joined
May 18, 2021
Messages
14
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
Hello! I have a hard time solving this in excel using solver (required). I have the correct answer below.
I'm not sure where my constraints should be? Or how to formulate them - but my objective function is $1.05*O-type+$1.34*D-type
I have attached a screenshot of my excel below.

Screenshot of info:

1652067971064.png

Using your Excel Solver, determine how much of the O and D- type you need (for a total of 10.000 pounds) , and what the minimum cost would be.

The correct answers are:
O-Type: 3333
D-Type: 6667
Minimized cost : $12433

Screenshot of my excel+solver. Incorrect. Not feasable.
1652069332353.png
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Have you tried the GRG Nonlinear engine? That seemed to work fine here:
Book1
ABCDE
1
2Fuel TypeH Conc (units/lb)O Conc (units/lb)Cost ($/lb)
3O-Type Fuel45151.05
4D-Type Fuel9061.34
5
6Constraints
7Fuel weight (lb/day)>=10000
8Fuel mix H (units/lb)>=60
9Fuel mix O (units/lb)<=9
10
11Basis:1 day
12
13Fuel weight (lb)H unitsO unitsCost
14
15O-Type Fuel3333.333328149999.999849999.999923500
16D-Type Fuel6666.666656599999.99939999.999938933.333
17Sums9999.999983749999.998889999.9998512433.33
18Conc H or O per lb759
19Constraints10000609
20Actual relative to constraint>=>=<= minimize
Sheet2
Cell Formulas
RangeFormula
C15:E16C15=C3*$B15
B17:E17B17=SUM(B15:B16)
C18:D18C18=C17/$B$17
Named Ranges
NameRefers ToCells
solver_adj=Sheet2!$B$15:$B$16B17, C15:E15
solver_lhs1=Sheet2!$B$17C18:D18

1652078342512.png
 
Upvote 0
I was trying to figure out how to help you without just giving you the answer.
You are close but you misread one of the criteria
On row 7 you have both fuel concentration limits using <=
  • at least 60 units of hydrogen per pound of fuel mix C5>=C8
  • at most 9 units of oxygen per pound of fuel mix D5<=D8
1652082298854.png
 
Upvote 0
Solution
Have you tried the GRG Nonlinear engine? That seemed to work fine here:
Book1
ABCDE
1
2Fuel TypeH Conc (units/lb)O Conc (units/lb)Cost ($/lb)
3O-Type Fuel45151.05
4D-Type Fuel9061.34
5
6Constraints
7Fuel weight (lb/day)>=10000
8Fuel mix H (units/lb)>=60
9Fuel mix O (units/lb)<=9
10
11Basis:1 day
12
13Fuel weight (lb)H unitsO unitsCost
14
15O-Type Fuel3333.333328149999.999849999.999923500
16D-Type Fuel6666.666656599999.99939999.999938933.333
17Sums9999.999983749999.998889999.9998512433.33
18Conc H or O per lb759
19Constraints10000609
20Actual relative to constraint>=>=<= minimize
Sheet2
Cell Formulas
RangeFormula
C15:E16C15=C3*$B15
B17:E17B17=SUM(B15:B16)
C18:D18C18=C17/$B$17
Named Ranges
NameRefers ToCells
solver_adj=Sheet2!$B$15:$B$16B17, C15:E15
solver_lhs1=Sheet2!$B$17C18:D18

View attachment 64164
Thank you! We actually have not learned to use the GRN method, I think because of the solutions can vary from the "only one solution"-tests we get, not multiple solutions, so we have to use the Simplex LP.
 
Upvote 0
I was trying to figure out how to help you without just giving you the answer.
You are close but you misread one of the criteria
On row 7 you have both fuel concentration limits using <=
  • at least 60 units of hydrogen per pound of fuel mix C5>=C8
  • at most 9 units of oxygen per pound of fuel mix D5<=D8
View attachment 64170
Aahh I see now! Thank you! I changed the constraint, and got the correct result :)
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top