+ Reply to Thread
Results 1 to 7 of 7

Select and combine 5 different items together maximizing 5 different options

Hybrid View

  1. #1
    Registered User
    Join Date
    12-29-2014
    Location
    Varna, Bulgaria
    MS-Off Ver
    2010
    Posts
    3

    Select and combine 5 different items together maximizing 5 different options

    Hello to all interested

    I have a problem to solve, and i have no clue how to do it. Tried with solver plug-in but i think it can't do the things how i want to do.

    So, the thing is: We need an equipment of 5 different items, we have a list of available items, we need to select 1 of each, and all 5 combined to fulfill criteria (miss <= 12.5, avoid <= 40, critical <= 40, ) and maximize avoid, critical, max dmg, dmg incr in that order.

    eq-esim.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    606

    Re: Select and combine 5 different items together maximizing 5 different options

    Hi, just a couple of quick questions to get it straight in my head.
    1. your post says "miss <=12.5" but your file says "miss >=12.5" ..... which one?
    2. with the stat "max dmg <=50" for example ...... you want numbers as high as possible up to 50 but not over?
    3. you want this file to automatically select the best combination of items to match your criteria in their appropriate order of importance?

    I have added a heap of helper columns and created drop down boxes to choose your gear from and after selecting 5 pieces it will show the results.
    This is a long way from getting the program to do it automatically, but it is a start.
    Actually, the more I look at it, the more I'm realising this is way beyond my capabilities.
    But it is an interesting challenge.

    BTW, this file at the moment only looks at the first 1000 items.
    Attached Files Attached Files
    Last edited by Beamernsw; 12-29-2014 at 11:51 AM.

  3. #3
    Registered User
    Join Date
    12-29-2014
    Location
    Varna, Bulgaria
    MS-Off Ver
    2010
    Posts
    3

    Re: Select and combine 5 different items together maximizing 5 different options

    Hi, thanks for helping me
    On the questions:
    1. yes.. the correct is miss >= 12.5, but i don't need it to be max
    2. yes, high as possible... the max dmg limit that i put is also wrong so no limit there
    3. yes, auto select the best of all items, in .. importance (most important to least important > avoid , crit , max dmg, dmg incr) , maybe they have to be weighted by importance, something like 0.4,0.3,0.2,0.1
    Last edited by holyexcel; 12-29-2014 at 12:11 PM.

  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,784

    Re: Select and combine 5 different items together maximizing 5 different options

    As you seems to have got a solution to your problem I'm not sure you need a solver model but I've set up one using a binary grid (range K2:O14) to find the maximum value for all 5 components.

    Alf
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-29-2014
    Location
    Varna, Bulgaria
    MS-Off Ver
    2010
    Posts
    3

    Re: Select and combine 5 different items together maximizing 5 different options

    Thank you Alf!!! That is a very decent solution. But it work good when 1 item have 1 option. I added SUM of SUMPRODUCT for all 5 options and i think for now it do the job. I will test this scenario with more items and report it here. Thank you again

    no (weighted ) importance of options for now, and it don't select 1 from each items If someone have an idea for that, ill be more than happy

    yup, i realized im doing it wrong that way :D
    Attached Files Attached Files
    Last edited by holyexcel; 12-30-2014 at 05:35 PM. Reason: yup i realized im doing it wrong that way

  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,784

    Re: Select and combine 5 different items together maximizing 5 different options

    Not sure at the moment what you wish to achieve. Since you "locked" the C2:C14 values in the sumproduct formula i.e. $C$2:$C$14 the first value is the product of the "miss values" times the "binary miss value" and that is correct. But then in cell S2 you multiply the "miss value" with the "binary avoid value" ???? and the formula in cells T, U and V the "miss values" are multiplied with "binary critical", "binary dmg incr" and "binary max dmg"

    If you would like to increase the number of items just change the value of the range K17:O17 to 2 or 3 or whatever you like as long as there are sufficient numbers in the range C2:G14
    So you can't set say M17 to 2 because you only got 1 value in the F column with this binary set up.

    Another option is to set range K2:O14 to "Integer" instead of "binary". This allows Solver to select more than one from each item if you change the range K17:O17 to higher values than 1.

    Alf

  7. #7
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    606

    Re: Select and combine 5 different items together maximizing 5 different options

    Hi holyexcel, have you had any further luck with this?
    If not then I have an idea, really don't think it would pan out but willing to try, but I would need quite a bit more data to play with.

+ 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. Newbie: Auto Select/un-Select an Range of Slicer Items
    By luckyali in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-23-2014, 09:52 AM
  2. Select Multiple Items in a List and then Print Those Items
    By dcdoc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-26-2013, 01:16 PM
  3. Replies: 6
    Last Post: 06-26-2013, 10:58 AM
  4. [SOLVED] Range.Select error and screen maximizing error in Workbook_Open()
    By Punsterr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-10-2006, 05:20 PM
  5. [SOLVED] Range.Select error and screen maximizing error in Workbook_Open()
    By Punsterr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2006, 03:00 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