Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# LP Model help!

Posted on 2011-02-13
Medium Priority
200 Views
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.

0
Question by:faithless1
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 5
• 4
• 2

LVL 32

Accepted Solution

phoffric earned 1600 total points
ID: 34885101
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?
0

Author Comment

ID: 34885200
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.
0

LVL 32

Assisted Solution

phoffric earned 1600 total points
ID: 34885226
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?
0

Author Comment

ID: 34885278
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.
0

LVL 32

Assisted Solution

phoffric earned 1600 total points
ID: 34885356
Here is the form of the spreadsheet in preparation in using the Solver:

Purchase of cp, rb, and mb products

Objective

``````    A                B           C          D
Minimize Cost        0
``````

Decision Variables
``````Pounds of first      0
Pounds of second     0
``````

Constraints
``````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
``````

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

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
``````

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.
0

LVL 32

Assisted Solution

phoffric earned 1600 total points
ID: 34885383
>> 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.
0

LVL 37

Assisted Solution

TommySzalapski earned 400 total points
ID: 34885535
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.

LP.xls
0

LVL 37

Expert Comment

ID: 34885540
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.
0

Author Comment

ID: 34885579
Thank you!!!! I made a few minor adjustments but essentially this is exactly what I needed! Thanks again, very much appreciated.
0

Author Closing Comment

ID: 34885583
Thanks!
0

LVL 32

Expert Comment

ID: 34885701
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computersâ€¦
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201â€¦
###### Suggested Courses
Course of the Month7 days, 11 hours left to enroll