+ Reply to Thread
Results 1 to 8 of 8

Solver contraint problem Urgent help needed please

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    SA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Solver contraint problem Urgent help needed please

    i need to do this using the solver:
    I cannot get the constraints right i tried various ways but nope. please help?

    On the Data tab, click on Solver to get the Solver Parameters box. Set the target cell to H8, the Total Profit cell. To maximize total profit, click on the Max button. Enter Barrels for By Changing Cells. This allows Solver to maximize total profit by changing the entries in the barrels cells.

    The entrepreneur cannot use more resources than are available. In the Subject to Constraints box, constraints need to be added. Click on the Add button and use the above cell names to add a constraint that ensures that the amount of resources used is less than or equal to the amount of resources that are available.

    Another constraint needs to be added, namely that the entries in the cells named barrels must be greater than or equal to zero. Add this constraint.

    Finally, click on the Solve button. What are the number of barrels of Light, Dark, Ale and Premium that should be made to maximize total profit for the month? i cannot get this right, please help? thanks!

    here a screenshot of the data:

    Excersize 7.JPG
    Attached Files Attached Files
    Last edited by catgirl; 04-11-2013 at 05:32 AM. Reason: edited

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Solver contraint problem Urgent help needed please

    Hi
    although pictures are nice to look at, they are utterly useless for us. Please post a sample sheet. Thx

  3. #3
    Registered User
    Join Date
    04-11-2013
    Location
    SA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Solver contraint problem Urgent help needed please

    i added the excel file thanks very much
    Last edited by catgirl; 04-11-2013 at 05:54 AM.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Solver contraint problem Urgent help needed please

    Try running solver on this setup.

    Alf
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-11-2013
    Location
    SA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Solver contraint problem Urgent help needed please

    Thanks very much but should i run the solver on cell C17 as the Set Objective?? and I then get 2850 as the value after running the solver???

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Solver contraint problem Urgent help needed please

    My model is one way of setting up solver. You can chose whatever cell you like and get a solver result as long as the "target cell" or "object function" shows what you are seeking i.e. max profit.

    So cell C17 contains the sumproduct formula which takes the number of barrels made times the profit made on each barrel. The number of barrels made is subjected to the constraints that you can only make a whole barrel, no half or 2/3 barrels. Then you can only make so many barrels until you run out of components i.e. malts, hops or yeast.

    Solver chewing on all this information will then decide how many and what kind of beer you should make in order to maximize profit within the set constraints.

    Alf
    Last edited by Alf; 04-11-2013 at 10:03 AM.

  7. #7
    Registered User
    Join Date
    04-11-2013
    Location
    SA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Solver contraint problem Urgent help needed please

    Thank you so much, I have to more excersizes to do, I tried to do them but yet again cant get the values I am suppose to do. I dont know what i am doing wrong

    we must now:

    1.Suppose in the following month that the entrepreneur is able to get 70kg of malt, 200kg of hops and 100kg of yeast. If there are no other changes in the data, what would be the value of her total profit and how many barrels of each product should be produced?
    2.Suppose the amounts of malt, hops and yeast used in part (i) are available. What would be the total profit if the constraints that at least 5 barrels of Dark and at least 2 barrels of Premium be added?
    3.In addition to the changes in resources used in part (i) and the new constraints added in part (ii), suppose a new recipe for making Premium used 2kg of malt, 1kg of hops and only 2kg of yeast. What would the value of the total profit? The solution that Solve provides shows that some hops are left over. Why can’t more of any product be made?

    i should get 2851 for 1, I get this one
    then 3615 for 2 which i DONT get
    and 3. i dont know because i cannot get 2

    please can you help one last time please?
    Attached Files Attached Files

  8. #8
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Solver contraint problem Urgent help needed please

    I don't think you really need my help anymore as I set up a working model for you and what is going too happened is that there is a change in constraint month 2 and a change of recipe in moth 3.

    Name the first sheet "Solver_month 1" and add a sheet called "Solver_month 2" with the same layout only change the constraint. Then add a sheet "Solver_month 3" and change the recipe and set up solver on sheet 2 and 3.

    As this takes care of you problem could you please mark your thread "Solved"

    Alf

    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1