Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
I'm wondering if anyone here can point me in the right direction. I'm working on an exhaustive search for 0-1 knapsack problem. I need to write some vba that will represent every possible combination of items in the knapsack. for example, if there are 3 items in the knapsack, I need to store the value (v) of the items stored. Of course the knapsack capacity varies. In the following example n= 3, i.e. there are 3 items to store, and 2^3 = 8 combinations of items. 000 = v1 010 = v2 001 = v3 011 = v4 111 = v5 101 = v6 110 = v7 111 = v8 I need to do this in vba as I'm unfamiliar with C, C++ or Java. thanks in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating subsets | Excel Discussion (Misc queries) | |||
Manipulating subsets of large datasets | Excel Worksheet Functions | |||
How to generate formula from two dimensional array of data | Excel Worksheet Functions | |||
Getting subsets of data | Excel Programming | |||
how do I generate an array of correlated values | Excel Worksheet Functions |