in reply to Nesting 2

Try this website: KnapSack problem I think it will give you some of the mathematical foundation of the problem.

jdtoronto