<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Challenge #52: Solving the Knapsack Problem in Weekly Challenges</title>
    <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/48165#M433</link>
    <description>&lt;P&gt;Taking a break from my fractional CFO work and getting back to some Alteryx work.&amp;nbsp; I never got around to posting my solution for this.&amp;nbsp; I built this out without a macro and only 2 joins and some simple formulas.&amp;nbsp; It also doesn't require the formulas to have the exact number of boxes to work.&amp;nbsp; The only drawback is that in only works up to 9 boxes(unique items).&amp;nbsp; I assigned each box a unique id number and figured out how many combinations there could be, including duplicates, having each value in any combination or order (1,2,3 and 3,2,1 are different).&amp;nbsp; That process gave me a row for every value from 1 to 54,321 (5,4,3,2,1).&amp;nbsp; I then split the values into a column for each separate number of the value and transposed the data.&amp;nbsp; I filtered out zeros, nulls, and numbers greater than 5 (since there were only 5 boxes) along the way.&amp;nbsp; I used a multi-row tool to figure out what rows to mark for deletion based on if a row had more than 1 of each digit.&amp;nbsp; Filtered to unique values, split them up to have box id's to join to the original data set.&amp;nbsp; From that point the remaining workflow from there is pretty simple and self explanatory if you want to download my solution to view the exact mechanics.&amp;nbsp; The workflow is shown below.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="53a.JPG" style="width: 796px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/13217iBA3A5519F275B30A/image-size/large?v=v2&amp;amp;px=999" role="button" title="53a.JPG" alt="53a.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="53b.JPG" style="width: 912px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/13218iF95B8D0022A3ED8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="53b.JPG" alt="53b.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="53c.JPG" style="width: 410px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/13219iD90EB8E136D0FB28/image-size/large?v=v2&amp;amp;px=999" role="button" title="53c.JPG" alt="53c.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="53d.JPG" style="width: 831px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/13220iED9F8799BA38C42E/image-size/large?v=v2&amp;amp;px=999" role="button" title="53d.JPG" alt="53d.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2017 14:56:54 GMT</pubDate>
    <dc:creator>alex</dc:creator>
    <dc:date>2017-02-28T14:56:54Z</dc:date>
    <item>
      <title>Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/42761#M324</link>
      <description>&lt;P&gt;&lt;STRONG&gt;A link to the last challenge is &lt;A href="https://community.alteryx.com/t5/Weekly-Challenge/Challenge-51-Spatial-County-Coverage/m-p/40313" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The knapsack problem:&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are 5 boxes of varying weights and dollar amounts - which boxes should be chosen to maximize the amount of money while still keeping the overall weight under or equal to 15 kg?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From a challenge standpoint, which combination of box/boxes is most optimal if you were only allowed 1 box in the backpack? 2 boxes in the backpack? 3 boxes in the backpack? or 4 boxes in the backpack?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Output 1&lt;/STRONG&gt;: details the number of boxes and total $ without going over 15kg.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Output 2:&lt;/STRONG&gt; details the specific blocks per batch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have included spatial objects as part of the input should you want to use a location optimizer macro as part of the solution.&amp;nbsp; The new prescriptive simulation tools may also be a good choice for a solution. &amp;nbsp;We are looking forward to seeing the solutions you come up with.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Please don't feel constrained by the example output, your solution may be better!&amp;nbsp; I am looking forward to seeing your solutions in this new more interactive forum.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 19:02:46 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/42761#M324</guid>
      <dc:creator>GeneR</dc:creator>
      <dc:date>2022-09-13T19:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/43606#M331</link>
      <description>&lt;P&gt;I wanted to calculate this using the simple tools, to show it can be done without writing anything complex.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Create all combinations.PNG" style="width: 449px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/11822iEAEA1E66D15A1E3C/image-dimensions/449x228?v=v2" width="449" height="228" role="button" title="Create all combinations.PNG" alt="Create all combinations.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To begin with, I created a cartesian join to produce all possible combinations of boxes. This, however, results in a combination of 1 and 2 being treat differently to 2 and 1. Also, we now have combinations of the same box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Filter Cmbinations of the same box.PNG" style="width: 404px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/11823i2CF2DC04F6798525/image-size/large?v=v2&amp;amp;px=999" role="button" title="Filter Cmbinations of the same box.PNG" alt="Filter Cmbinations of the same box.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I then used simple formulae to remove those combinations of the same box.&lt;/P&gt;&lt;P&gt;This left me with only the combinations including non-unique strings in different orders to remove:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unique combi.PNG" style="width: 912px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/11824i1967AE6CCF6A9097/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unique combi.PNG" alt="Unique combi.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I did this by transposing the records, ordering them by box number, and cross-tabbing back. This made 123 and 321 the same, which could then be filtered out using the unique tool.&lt;/P&gt;&lt;P&gt;Following this it was simple to filter out those combinations over 15kg, and use the sample tool to take the highest value of each combination by number of boxes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Filter top picks.PNG" style="width: 574px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/11825iACA3B87368A7F6BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Filter top picks.PNG" alt="Filter top picks.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 12:19:18 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/43606#M331</guid>
      <dc:creator>mceleavey</dc:creator>
      <dc:date>2017-01-17T12:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/48165#M433</link>
      <description>&lt;P&gt;Taking a break from my fractional CFO work and getting back to some Alteryx work.&amp;nbsp; I never got around to posting my solution for this.&amp;nbsp; I built this out without a macro and only 2 joins and some simple formulas.&amp;nbsp; It also doesn't require the formulas to have the exact number of boxes to work.&amp;nbsp; The only drawback is that in only works up to 9 boxes(unique items).&amp;nbsp; I assigned each box a unique id number and figured out how many combinations there could be, including duplicates, having each value in any combination or order (1,2,3 and 3,2,1 are different).&amp;nbsp; That process gave me a row for every value from 1 to 54,321 (5,4,3,2,1).&amp;nbsp; I then split the values into a column for each separate number of the value and transposed the data.&amp;nbsp; I filtered out zeros, nulls, and numbers greater than 5 (since there were only 5 boxes) along the way.&amp;nbsp; I used a multi-row tool to figure out what rows to mark for deletion based on if a row had more than 1 of each digit.&amp;nbsp; Filtered to unique values, split them up to have box id's to join to the original data set.&amp;nbsp; From that point the remaining workflow from there is pretty simple and self explanatory if you want to download my solution to view the exact mechanics.&amp;nbsp; The workflow is shown below.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="53a.JPG" style="width: 796px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/13217iBA3A5519F275B30A/image-size/large?v=v2&amp;amp;px=999" role="button" title="53a.JPG" alt="53a.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="53b.JPG" style="width: 912px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/13218iF95B8D0022A3ED8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="53b.JPG" alt="53b.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="53c.JPG" style="width: 410px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/13219iD90EB8E136D0FB28/image-size/large?v=v2&amp;amp;px=999" role="button" title="53c.JPG" alt="53c.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="53d.JPG" style="width: 831px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/13220iED9F8799BA38C42E/image-size/large?v=v2&amp;amp;px=999" role="button" title="53d.JPG" alt="53d.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 14:56:54 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/48165#M433</guid>
      <dc:creator>alex</dc:creator>
      <dc:date>2017-02-28T14:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/53105#M636</link>
      <description>&lt;P&gt;This challenge also seems to have spurred some very divergent solutions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My approach was a bit different to the others posted above. &amp;nbsp; Looked at the solution posted&amp;nbsp;and although it works for this data set, I'm not sure if it will work for all data-sets because it's essentially a greedy-fill single-pass algo (which is a very useful shortcut, but will miss some options thrown up by exploding the full solution space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;BR /&gt;- Built an iterative macro to progressively create experiments with 1; then 2; then 3.... boxes. &amp;nbsp; Because this is iterative, it will work for any number of boxes, and only stops when it runs out of results.&lt;BR /&gt;- However, because this was built as an iterative macro, had to jump through some pretty ridiculous hoops to create the data at each iteration.&lt;BR /&gt;- Used many of the same ideas as&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3173"&gt;@alex&lt;/a&gt; and&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3589"&gt;@mceleavey&lt;/a&gt; to remove experiments over 15kg, experiments which are reordered versions of themselves (e.g. 1-2 and 2-1), and experiments which reuse the same box many times.&lt;/LI-SPOILER&gt;&lt;P&gt;So - although we've solved this using standard means - I'm now very curious to see how to do this using a location optimizer - so I'm keeping this on my own personal list as unsolved for now :-)&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 04:42:55 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/53105#M636</guid>
      <dc:creator>SeanAdams</dc:creator>
      <dc:date>2017-04-05T04:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/53150#M638</link>
      <description>Yes, I feel I have unfinished business here too.</description>
      <pubDate>Tue, 04 Apr 2017 22:50:33 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/53150#M638</guid>
      <dc:creator>mceleavey</dc:creator>
      <dc:date>2017-04-04T22:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/53199#M645</link>
      <description>&lt;P&gt;Turns out that doing this with location optimization is MASSIVELY easier than doing it the other way.&lt;/P&gt;&lt;P&gt;I've updated my solution file so now it has both solution types in one file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;BR /&gt;Location optimizer has a setting for how many nodes to use - so all you need to do is build a scoring function.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="52 part 2.png" style="width: 689px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/14732i76A1DFA4D61317CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="52 part 2.png" alt="52 part 2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 05 Apr 2017 04:42:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/53199#M645</guid>
      <dc:creator>SeanAdams</dc:creator>
      <dc:date>2017-04-05T04:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/58193#M888</link>
      <description>&lt;P&gt;Feel like I cheated a bit by using the Optimization tool in Prescriptive, but it just makes things so easy....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;Spoiler&lt;BR /&gt;&lt;BR /&gt;To optimize with restrictions on the number of boxes, I just changed the last constraint to be ==1 for one box, ==2 for 2, etc.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/16249iCE637FD20ACCD84F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 03 May 2017 18:52:06 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/58193#M888</guid>
      <dc:creator>estherb47</dc:creator>
      <dc:date>2017-05-03T18:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/58194#M889</link>
      <description>That's not cheating at all, that's just using Alteryx as intended!&lt;BR /&gt;Well done for using the new tool. Using new tools makes my geek senses tingle.&lt;BR /&gt;#needtogetoutmore&lt;BR /&gt;</description>
      <pubDate>Wed, 03 May 2017 18:55:18 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/58194#M889</guid>
      <dc:creator>mceleavey</dc:creator>
      <dc:date>2017-05-03T18:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/60481#M1012</link>
      <description>&lt;P&gt;My solution!! Finished this a while ago, but apparently forgot to post it! Thanks for counting for me &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3804"&gt;@JoeM&lt;/a&gt;... &lt;EM&gt;this &lt;/EM&gt;one is #70 for me! And a good thing he caught me too, because I'm pretty proud of this one! I created an app where you can select the number of boxes for the knapsack, and the weight limit you want to use, and it will run through the various combinations to find the highest $ value combo. Believe it should work for any # of boxes/weight limits. Cheers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;Probably made this 10 times harder than I needed to with the dynamic app parameters, but it worked :) Good app practice!&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WeeklyChallenge52.JPG" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/16896i2D1666FFF2C9B538/image-size/large?v=v2&amp;amp;px=999" role="button" title="WeeklyChallenge52.JPG" alt="WeeklyChallenge52.JPG" /&gt;&lt;/span&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 17 May 2017 15:29:06 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/60481#M1012</guid>
      <dc:creator>NicoleJohnson</dc:creator>
      <dc:date>2017-05-17T15:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/64360#M1212</link>
      <description>&lt;P&gt;Finally got there this one...messy workflow :(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Weekly Challenge 52.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/17915i7183720E955D1766/image-size/large?v=v2&amp;amp;px=999" role="button" title="Weekly Challenge 52.png" alt="Weekly Challenge 52.png" /&gt;&lt;/span&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Tue, 13 Jun 2017 13:32:40 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/64360#M1212</guid>
      <dc:creator>LordNeilLord</dc:creator>
      <dc:date>2017-06-13T13:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/82510#M1898</link>
      <description>&lt;LI-SPOILER&gt;&lt;SPAN&gt;I've used the combination macro to get all the combinations. From past experience, it will not scale well in terms of speed. I like my second output which shows you which boxes add up to the weight and price (1+2+3 means boxes 1, 2, and 3 were selected.)&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 972px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/21990i8B5228001069F262/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Fri, 22 Sep 2017 18:17:14 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/82510#M1898</guid>
      <dc:creator>patrick_digan</dc:creator>
      <dc:date>2017-09-22T18:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/94885#M2608</link>
      <description>&lt;P&gt;&amp;nbsp;I Loved this Challenge! I didn't really know what location optimization macros did or how they worked before this.&amp;nbsp;I think it allows for some great use cases and hope to be able to put it to use soon! Also first time nesting macros, so thats fun&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 03:45:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/94885#M2608</guid>
      <dc:creator>samN</dc:creator>
      <dc:date>2017-12-06T03:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/95708#M2699</link>
      <description>&lt;P&gt;Tried several approaches, but went the prescriptive optimization route.&amp;nbsp; A bit cryptic to set up, but the tool works.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 04:32:10 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/95708#M2699</guid>
      <dc:creator>ggruccio</dc:creator>
      <dc:date>2017-12-12T04:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/98769#M2807</link>
      <description>&lt;P&gt;Solution attached.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:21:00 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/98769#M2807</guid>
      <dc:creator>LandonG</dc:creator>
      <dc:date>2017-12-13T16:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/103125#M2928</link>
      <description>&lt;P&gt;Intrigued about the combination macro someone downloaded from the gallery and used. Will have to give it a try. My solution attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My workflow&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The workflow using the macro" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/26143i4B3E056F0382046A/image-size/large?v=v2&amp;amp;px=999" role="button" title="challenge_52 - Snip.PNG" alt="The workflow using the macro" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The workflow using the macro&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The macro" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/26144iFB95B55B047E94BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="challenge_52m - Snip.PNG" alt="The macro" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The macro&lt;/span&gt;&lt;/span&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 11:53:44 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/103125#M2928</guid>
      <dc:creator>philipmannering</dc:creator>
      <dc:date>2017-12-16T11:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/103438#M2981</link>
      <description>&lt;P&gt;Solution attached.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 02:05:47 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/103438#M2981</guid>
      <dc:creator>jasperlch</dc:creator>
      <dc:date>2017-12-18T02:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/106675#M3043</link>
      <description>&lt;P&gt;Spent most part of the morning stuck at this, trying to find a dynamic solution. Knew that an iterative was going to do the trick, but thought a batch was needed. Inspiration came after a while away from the computer....&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 19:39:48 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/106675#M3043</guid>
      <dc:creator>dsmdavid</dc:creator>
      <dc:date>2017-12-20T19:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/108868#M3232</link>
      <description>&lt;P&gt;Comparing now my solution to others I feel that I am missing something.. I did cheat a little bit for the&amp;nbsp;second output and instead of doing a macro I used a sample tool, which of course won't let to produce the&amp;nbsp;details for thousands of batches but does work for looking at a few options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My solution is somewhat similar to the provided non-macro solution. I know that it doesn't consider all possible batch combinations, but I don't think we need to consider them all (Correct me if I am wrong here), as the goal is to optimise $ value, so I believe sorting desc is enough.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've never used Optimisation tool , so looking forward to inspect it!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;My&amp;nbsp;all-blue-tool workflow&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-12-28 at 01.29.30.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/26717i69188DC30846D93A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-12-28 at 01.29.30.png" alt="Screen Shot 2017-12-28 at 01.29.30.png" /&gt;&lt;/span&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 01:48:56 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/108868#M3232</guid>
      <dc:creator>Natasha</dc:creator>
      <dc:date>2017-12-28T01:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/109976#M3365</link>
      <description>&lt;P&gt;Well that took a LONG time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I learned some new things, and that's&amp;nbsp;what this is all about.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Full disclosure: after several failed attempts and many reads of the Optimizer Macro&amp;nbsp;help file I reverse&amp;nbsp;engineered&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/6304"&gt;@estherb47&lt;/a&gt;'s solution and&amp;nbsp;implemented something pretty similar. Thanks, Esther. You made it look so easy..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-01-04 at 01.03.52.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/26986i40CA884DA2EB3302/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-01-04 at 01.03.52.png" alt="Screen Shot 2018-01-04 at 01.03.52.png" /&gt;&lt;/span&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;And a special shout out to these guys. Couldn't have done it without you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-01-04 at 01.14.55.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/26988iAA70CE72AA87B894/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2018-01-04 at 01.14.55.png" alt="Screen Shot 2018-01-04 at 01.14.55.png" /&gt;&lt;/span&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Thu, 04 Jan 2018 01:15:36 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/109976#M3365</guid>
      <dc:creator>jamielaird</dc:creator>
      <dc:date>2018-01-04T01:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #52: Solving the Knapsack Problem</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/121150#M3739</link>
      <description>&lt;P&gt;Challenge Completed&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 11:25:34 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-52-Solving-the-Knapsack-Problem/m-p/121150#M3739</guid>
      <dc:creator>JosephSerpis</dc:creator>
      <dc:date>2018-01-27T11:25:34Z</dc:date>
    </item>
  </channel>
</rss>

