I have a list of 11 items that are available in either 2, 3 or 4 lengths depending on the item being considered.
The task is to find and list the smallest number of lengths that are required to construct the whole length.
So, what I need is:-
Required Length of item(2) = L
item(1) - (available lengths) a,b,c,d
item(2) - b,c,d
item(3) - b,d
...
item(11) - b,d
There may be numerous solutions (n) to derive L, so I want
L = x.a + y.b + z.c
Where x+y+z is the minimum of x(n)+y(n)+z(n)
Bookmarks