+ Reply to Thread
Results 1 to 6 of 6

optimization problem

  1. #1
    Registered User
    Join Date
    08-17-2020
    Location
    london
    MS-Off Ver
    2019
    Posts
    2

    optimization problem

    dear community.
    I was wondering if you might be able to help.
    I have a product that has two alternative BOMs, which excel formula or method I can use to maximize output for each batch?
    please see attached sample spreadsheet, thanks a lot!

    Sorry but also posted on Mrexcel forum as I am really stuck.
    Attached Files Attached Files
    Last edited by kema; 08-17-2020 at 09:54 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: optimization problem

    Is recipe 1 & 2 of product A constant or variable?
    If variable, is it always A<C in rec1 and B=C in rec2?
    Quang PT

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: optimization problem

    Assuming there are only 2 components in every recipe
    Recipe is sorted base qty as per example file.
    With F1 is batch criteria
    Please Login or Register  to view this content.
    with red part is for recipe1, the rest is for recipe2
    Result is, for example, batch 10-001, the max prod volumn is 21333
    Here is how the formula works:
    Recipe1: Get the Companent C SOH (54000) / 2 =17000 to compare with Companent A SOH (10000) then take the smaller ==> 10000
    Recipe2: To compare B (54000) and C (32000) then get the smaller, then divide by 1.5 ==>21333
    MAX (rec1, rec2)=21333
    Attached Files Attached Files
    Last edited by bebo021999; 08-17-2020 at 11:22 PM.

  4. #4
    Registered User
    Join Date
    08-17-2020
    Location
    london
    MS-Off Ver
    2019
    Posts
    2

    Re: optimization problem

    Thanks for taking the time to look into this.
    The recipes for product A are constant, cannot be changed.
    Constraint is: product A needs to be made with either recipe 1 OR recipe 2
    Problem is to calculate what is the maximum amount of product A that can be produced using either recipe 1 OR recipe 2

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: optimization problem

    Quote Originally Posted by kema View Post
    Problem is to calculate what is the maximum amount of product A that can be produced using either recipe 1 OR recipe 2
    Is it exactly what I did, isn't it?
    If not, what is your expected result?

  6. #6
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: optimization problem

    I used "Solver" to determine a solution of 31333 units for batch 10-001 with details per the picture below. It uses all of the SOH for A and B and all but 2000 units of C.

    If you need to do this frequently or for numerous recipes it is not as practical as Bebo021999's formula based solution. Bebo021999 says 21333 vs my 31333, but I think our answers are essentially consistent - he has taken the max of recipe A & B, whereas I have taken the sum. OP can clarify.

    kema.png
    kama1.png

    Details
    -------

    Objective: maximize H11 by changing E3 and E12, subject to the constraints of stock on hand - C2:C4.

    Formulas
    In E9: =E8*C9, in E10: =C10*E8
    In E13: =E12*C13, in E14: =E12*C14
    In H11: E8 + E12
    In D2: =E9, in D3: =E13, in D4: =E10+E14
    Attached Files Attached Files
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pool Optimization Problem
    By JackSmith123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2016, 07:12 PM
  2. Need Help with an Optimization Packing Problem
    By Kaenon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2015, 06:18 PM
  3. Optimization Problem with integral
    By clodilsognatore in forum Excel General
    Replies: 2
    Last Post: 10-02-2014, 12:29 AM
  4. Problem Using Solver with an optimization stock problem
    By Jagrubski in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2013, 03:41 AM
  5. Complex Optimization problem through VBA
    By usmanzkhan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-21-2012, 06:09 PM
  6. product mix optimization problem
    By lucabi in forum Excel General
    Replies: 2
    Last Post: 08-19-2012, 02:15 PM
  7. Optimization Problem
    By learningtoride in forum Excel General
    Replies: 0
    Last Post: 06-28-2011, 03:52 PM

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