>I am looking for a best FoxPro code to fill in rectangular shale with as many instances of smaller rectangular as possible. >The real task is: I have a pallet 40” by 48” and need to place on this pallet as many cases 9” by 15” as possible with minimum pallet space waste. >Of course sizes of a pallet and case will vary. >Any help will be greatly appreciated.
Not an easy problem to "solve" (a classic "NP Hard" problem http://en.wikipedia.org/wiki/NP-hard). A lot of the papers online are hidden behind pay sites and they're all pretty heavy on the math.