+ Reply to Thread
Results 1 to 8 of 8

How to find the least inputs for a specific amount of outputs

  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2021
    Posts
    17

    How to find the least inputs for a specific amount of outputs

    How can excel find the least amount of inputs needed to produce a specified amount of outputs? To boil it down to the basics:

    Need=
    100 units of x
    200 units of y

    From a combination of=
    item A that yields 25 units of x and 5 units of y
    item B that yields 10 units of x and 15 units of y

    Objective = minimize the number of items A & B used (i.e. minimum of (item A)*(item B))

    Any ideas?

    Also, I'd like to expand the list of needs and items in the future, but tyring to keep it simple for now.

  2. #2
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: How to find the least inputs for a specific amount of outputs

    You need linear programming for this. Google "Solver"

    http://office.microsoft.com/en-ca/ex...001124595.aspx

  3. #3
    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: How to find the least inputs for a specific amount of outputs

    As Xx7 said solver could be used but the way your problem is "specified" there is no solution unless you accept a negative amount of item A. Either your yield for A and B are wrong or you must change what you need of x and y.

    a specified amount of outputs?
    This I take to be that production should be exactly 100 units of x and 200 units of y which is not possible. There is also the question of A and B should they be integer or could one use 1.24A?

    Alf

  4. #4
    Registered User
    Join Date
    04-10-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2021
    Posts
    17

    Re: How to find the least inputs for a specific amount of outputs

    Not exactly but at least that amount. So you need to produce a minimum of 100 units of x and 200 units of y.

    A & B have to be integers, so you can't use a fraction of A or B.

    The need is to use the least amount of A&B to get the minimum X&Y units needed.

  5. #5
    Registered User
    Join Date
    04-10-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2021
    Posts
    17

    Re: How to find the least inputs for a specific amount of outputs

    Quote Originally Posted by Alf View Post
    As Xx7 said solver could be used but the way your problem is "specified" there is no solution unless you accept a negative amount of item A. Either your yield for A and B are wrong or you must change what you need of x and y.

    The numbers above I made up off the top of my head, the actual problem is far more complex involving units of 20 different items and possible inputs of 30+ different items.

    What I'd like to understand is how to structure solver to answer the question. I've looked at examples, but they all start in the opposite direction (i.e. you have 2600 bricks and need to make a building of x by y size -- whereas, I need to make 2600 bricks from mud and straw for example.)

  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: How to find the least inputs for a specific amount of outputs

    I've set up a small solver model (build in Excel 2003) based on your request in post #1.

    You must have solver installed on you PC to run this model. I'v also added two png files to show solver start and solver result.

    Have a look and see if this is something that can be of use to you.

    Alf
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Alf; 02-17-2014 at 01:51 PM. Reason: uploaded wrong picture

  7. #7
    Registered User
    Join Date
    04-10-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2021
    Posts
    17

    Re: How to find the least inputs for a specific amount of outputs

    Over 1,000,000 thank yous!!!

    I read through your example spreadsheet and was able to implement the same on my data set. The results were ... WONDERFUL!!!

    Thank you again!

  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: How to find the least inputs for a specific amount of outputs

    Glad to be of help! Thanks for feedback and rep.

    Alf

+ 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. [SOLVED] Getting different formula outputs for different given inputs
    By Jay Pee in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-12-2013, 04:19 AM
  2. IF with multiple inputs and outputs
    By zdej in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-20-2013, 05:52 PM
  3. [SOLVED] Find the last output from a (website) table, when amount of outputs vary?
    By CFJensen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-15-2012, 08:32 PM
  4. Assigning Inputs to Outputs
    By rajiv_jolly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2012, 05:33 PM
  5. Help with multiple inputs and outputs
    By FinanceGuy in forum Excel General
    Replies: 1
    Last Post: 04-28-2010, 10:04 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