Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Help with attempting to solve cutting stock problem (knapsack)

by markov (Scribe)
on Jan 16, 2004 at 16:51 UTC ( #321827=note: print w/replies, xml ) Need Help??

in reply to Help with attempting to solve cutting stock problem (knapsack)

Although Abigail is correct (NP complete problems like this one have no efficient solutions for large sets of data), you still can create software which runs it fast.

At least there are two ways to improve it:

  1. implement and algorithm which is smarter than branch-and-bound. A lot of work, requires sufficient education in programming techniques.
  2. exchange required computation force with memory consumption. Use Memoize (by MJ Dominous) on KNAP and you'll see the the speed become linear and memory consumption grow exponentially... In some cases, you may be able to buy a sufficient amount of memory to replace unrealistic time to wait. (for instance, for stock calculations, minutes may already be too long to wait)
  • Comment on Re: Help with attempting to solve cutting stock problem (knapsack)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://321827]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2018-02-24 04:49 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (310 votes). Check out past polls.