+ Reply to Thread
Results 1 to 3 of 3

Optimized Product Selection Problem

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Optimized Product Selection Problem

    I am looking for a code direction to optimize product selection.

    There are 6 products. Using a combination of these 6 products gives the best outcome of subtotals required for selection. It gets complex - these 6 products have 6 options each.

    Product1...QtyA_type..QtyB_type..QtyC_type.......QtyF_type...Price
    Product2...QtyA_type..QtyB_type..QtyC_type.......QtyF_type...Price
    Product3...QtyA_type..QtyB_type..QtyC_type.......QtyF_type...Price
    Product4...QtyA_type..QtyB_type..QtyC_type.......QtyF_type...Price
    Product5...QtyA_type..QtyB_type..QtyC_type.......QtyF_type...Price
    Product6...QtyA_type..QtyB_type..QtyC_type.......QtyF_type...Price
    e.g. Totals Req... 11..4..4..7..0..0

    Solution(s) may be multiple Product X's or a combination of different products. It would be good to optimally use product(s) with the best price.
    The biggest problem I think is that subset >= is OK (minimized), but cannot be <. Most things I look at try to be exact or under.

    The second twist is that QtyA_type and QtyB_type could be combined as a total requirement. e.g. need "17" can be a total of A and B in a single type total (essentially reduces to 5 types).

    I still find it even difficult how to properly get the nearest >= for a single column. I attached a sample of what this looks like when I do it in a very manual way. Actually, I had lookups with dropdowns in each level to make manual evaluations easier but it would be better automated. A point in the right direction is very appreciated. Anything more... much appreciated. TestCombo.xlsx

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Optimized Product Selection Problem

    am looking for a code direction to optimize product selection.

    There are 6 products. Using a combination of these 6 products gives the best outcome of subtotals required for selection.
    Optimize production selection to what?

    Optimization is relative. It has to have a measurement.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    11-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Optimized Product Selection Problem

    Optimize based on the user filled in requirements for each category.

    e.g. Column 1 the user wants "17". The options in the array are 8,8,7,6,8 with a price. There are many ways to get to 17 but taking three 6's may be the best solution based on price. Or, if the user wants column one at 17 and column three at 15 it may be that you have much more in column one than at other times because column three requirements need to be solved.

+ 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. Create an Optimized Schedule (Warning: A lot of reading!)
    By BYizz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-03-2013, 02:48 PM
  2. Optimized cutting length help needed
    By mr63249 in forum Excel General
    Replies: 2
    Last Post: 05-31-2013, 08:06 AM
  3. Complex Product Selection Tool. Any ideas?
    By zappabeef in forum Excel General
    Replies: 12
    Last Post: 08-21-2012, 10:53 AM
  4. How to add a unique ID by a combination of a count product selection
    By v2jtb in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2012, 05:20 PM
  5. Working Code: Can it be optimized?
    By qcity in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 06-17-2011, 01:00 AM

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