LP Model help!

I've been having a difficult time with figuring out a problem using solver to figure our the following and come up with a graph.

First product pound contains 20% cp, 20% rb and 15% mb
Second product pound contains 30% cp, 25% rb and 10% mb

First product costs $90 for each pound
Second product costs $120 for each pound

I want to buy enough of both products to get at least 8 pounds of cp, 6 pounds of rb, and 5 pounds of mb while paying the least. For this, I'm using an LP model and trying to sketch a region but it's not making much sense as well as the optimal price.

Thank you in advance.
Who is Participating?
phoffricConnect With a Mentor Commented:
Could you make this two questions - one for the minimization, and one for the graph? I'll then try to see if I can help with one of these questions. Also, since this question appears to be academic in nature, I will try to provide as much guidance as I am allowed to per EE guidelines.

Does 28 and 8 pounds for first and second items seem right to you?
faithless1Author Commented:
That is precisely what it's supposed to be. Unfortunately I am having difficulties with properly utilizing excel to produce this information with a graph. Thank you in advance.
phoffricConnect With a Mentor Commented:
Sorry, I haven't figured out how to create a graph yet. Perhaps you could ask this graph as a separate question. I only figured out the answer using solver. Or, if that is the primary requirement, then you can leave this as the question. What kind of graph are you looking for?

BTW - is this for academic or self-study purposes?
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

faithless1Author Commented:
Perfect, thanks. Solver usage was my main problem so thanks for that. I've been out of prison for some time now, just need this for a business plan I'm working on. For the graph I just need optimums for both amounts along with constraints. I should be able to figure the graph so no worries if it requires a lot more time. Thanks again.
phoffricConnect With a Mentor Commented:
Here is the form of the spreadsheet in preparation in using the Solver:

Purchase of cp, rb, and mb products                        


    A                B           C          D
Minimize Cost        0 

Open in new window

Decision Variables                        
Pounds of first      0                
Pounds of second     0 

Open in new window

Product Name        % cp        % rb        % mb
Actual              0.00        0.00        0.00
Required at least   8.00        6.00        5.00

Pounds of 1st >= 0:    0           0        
Pounds of 2nd >= 0:    0           0 

Open in new window

Product Name        % cp        % rb        % mb
First               0.20        0.20        0.15
Second              0.30        0.25        0.10

Open in new window

Breakdown of components in Pounds                        
Product Name        # cp        # rb        # mb
First               0.00        0.00        0.00
Second              0.00        0.00        0.00
Total               0.00        0.00        0.00

Open in new window

Any non-zero numbers are taken from your OP. The 0's in the 3 fields in Objective and Decision Variables are just numbers - not formulas. The two right-most 0's in the last two constraints of the 5 shown are fixed numbers (and the left-most 0's are just the actual pounds purchased which is set to the Decision Variables). The Actual line are formulas based on Decision Variables and the Facts. The Breakdown of components in Pounds are formulas.

The first step in using the Solver is to make sure you have the formulas correct. So, just put in arbitrary values such as 1 and 10 and verify that all the 0's are computed correctly. If you have problems doing that, attach your spreadsheet and indicate which cell is causing the incorrect numbers to appear.

I assume that since you wish to use the Solver, then you are already familiar with Excel formulas.
phoffricConnect With a Mentor Commented:
>> already familiar with Excel formulas.
should be: already familiar with Excel formulas (Sum) and simple equations. I'll be back in about an hour to check up on the spreadsheet. The gist of using the solver is to select the Minimize Cost cell having the 0, and then hit the Solver button.

If you set up the form as above, then you can then hit the Guess button, and you should see something like:  $B$9:$B$10 corresponding to the two Decision Variables.

Then you have to add the constraints by hitting the Add button (5 times for the 5 constraints). You set the Cell Reference (by pointing to the cell), the equality/inequality operator (by pull-down menu), and the Constraint (by pointing to the cell). For each constraint, hit the Add button except for the last constraint, where you hit the OK button. Then you will see the 5 constraints listed, where you can double-check your work.
TommySzalapskiConnect With a Mentor Commented:
For the chart I would use an XY scatter plot with lines (this is the best way to get excel to do normal xy plots). You could chart the needed pounds of product 2 given the pounds of product 1 purchased. Then you could plot all the costs.
Something like this (posted Excel file). I assumed you had to purchase whole pounds.

Note: From a mathematical standpoint, the way to calculate the optimum analytically would be to simply get the cost at each critical point (All product 1, all product 2, and all the intersections of the other lines). In this specific instance you only have one intersection in the possible range (where P1,P2 >=0). So you would only need to check three points.
faithless1Author Commented:
Thank you!!!! I made a few minor adjustments but essentially this is exactly what I needed! Thanks again, very much appreciated.
faithless1Author Commented:
You're welcome. Good luck with your business plan.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.