+ Reply to Thread
Results 1 to 7 of 7

Optimization and Efficiency

  1. #1
    Registered User
    Join Date
    08-26-2014
    Location
    USA
    MS-Off Ver
    2011 & 2007 Mac
    Posts
    3

    Optimization and Efficiency

    l'm working on an optimization/efficiency spreadsheet for roasting coffee.

    I think the following sums up my issue:

    (A1)/x = y

    Where "A1" is the given value, "x" is any real number from 10 to 10.8, and "y" is any whole integer. The formula should give preference to keeping "y" as low as possible.

    If the real world example helps, here is what is going on:

    "A1" is a quantity of coffee to be roasted in pounds.
    "x" is the amount of coffee that can be roasted in each batch (anywhere from 10-10.8 pounds)
    "y" is the number of batches to roast (thus why it must be a whole number)

    I have run solver, but cannot get solver to return y as a whole integer. I imagine that there is an easier way to solve this without using solver, but my Excel skills are limited.

    Thanks in advance for any help

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Optimization and Efficiency

    Hi,

    Unless I'm missing something obvious why not

    =INT(A1)/x
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-26-2014
    Location
    USA
    MS-Off Ver
    2011 & 2007 Mac
    Posts
    3

    Re: Optimization and Efficiency

    Thanks for the quick response.

    What I am trying to do is to have Excel determine the best value for "x" in order to optimize "y"

    So, the way I understand the formula that you wrote, I have to determine the value of "x"

    Does that make sense?

  4. #4
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Optimization and Efficiency

    Hi, Check it out the attachment, this is what do you looking for ?
    Attached Files Attached Files
    Click just below left if it helps, Boo?ath?

  5. #5
    Registered User
    Join Date
    08-26-2014
    Location
    USA
    MS-Off Ver
    2011 & 2007 Mac
    Posts
    3

    Re: Optimization and Efficiency

    That is closer to what I am looking for, but does not work on the following example:

    If you use the value of "41" for A1 in your attached file, ideally A2 would pull the F1 and F2 combo instead of K1 and K2 because the result of F1 and F2 would be less waste (.2 pounds) than K1 and K2 (2.2 pounds)

    Thanks

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Optimization and Efficiency

    Hi,

    Are you able to upload a workbook with a few examples together with your (manually-calculated) desired results?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  7. #7
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Optimization and Efficiency

    Ok check it out the attachment now

    Quote Originally Posted by zhensley View Post
    That is closer to what I am looking for, but does not work on the following example:

    If you use the value of "41" for A1 in your attached file, ideally A2 would pull the F1 and F2 combo instead of K1 and K2 because the result of F1 and F2 would be less waste (.2 pounds) than K1 and K2 (2.2 pounds)

    Thanks
    Attached Files Attached Files

  8. #8
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Optimization and Efficiency

    Hi, check it out the revised file
    Attached Files Attached Files

+ 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. Efficiency
    By gtmeloney in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2009, 11:10 AM
  2. Efficiency… Efficiency… Efficiency…
    By rakeshplb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2009, 08:37 AM
  3. Efficiency using IF and OR
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-30-2009, 08:27 PM
  4. I need of optimization -Please help!
    By Mm73 in forum Excel General
    Replies: 1
    Last Post: 08-25-2008, 02:18 PM
  5. optimization
    By kckar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2005, 01:05 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