in reply to Finding the simplest combination of descrete thicknesses that sums nearest to the target thickness.

Maybe you could use a module like IA::Prolog to solve this kind of problem: declare your restrictions and let the deep-search of prolog look for the solutions.
  • Comment on Re: Finding the simplest combination of descrete thicknesses that sums nearest to the target thickness.

Replies are listed 'Best First'.
Re^2: Finding the simplest combination of descrete thicknesses that sums nearest to the target thickness.
by doowah2004 (Monk) on May 05, 2005 at 15:08 UTC
    I am not familiar with Prolog, but I will do some reading on it. Hopefully it will be something new that I can add to my arsenal.