Click here to Skip to main content
15,887,596 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Bin Packing Pin
Patrice T21-Aug-15 12:20
mvePatrice T21-Aug-15 12:20 
GeneralRe: Bin Packing Pin
Cenator21-Aug-15 16:25
Cenator21-Aug-15 16:25 
SuggestionRe: Bin Packing Pin
Patrice T21-Aug-15 17:05
mvePatrice T21-Aug-15 17:05 
AnswerRe: Bin Packing Pin
Patrice T21-Aug-15 18:15
mvePatrice T21-Aug-15 18:15 
GeneralRe: Bin Packing Pin
Cenator21-Aug-15 20:53
Cenator21-Aug-15 20:53 
GeneralRe: Bin Packing Pin
harold aptroot21-Aug-15 23:29
harold aptroot21-Aug-15 23:29 
GeneralRe: Bin Packing Pin
Cenator22-Aug-15 0:04
Cenator22-Aug-15 0:04 
AnswerRe: Bin Packing Pin
Patrice T22-Aug-15 3:46
mvePatrice T22-Aug-15 3:46 
I think your problem is a cross between a few problems:

- it is similar to the knapsack problem with Multiple constraints
https://en.wikipedia.org/wiki/Knapsack_problem[^]

- It is similar to the cutting stock problem with real stock and where the cut don't go back in stock.

And certainly a few others.

What is important is that they are all NP-Hard problems.
Starting from there your optimisation program is more or less a tree exploration program.
On each step, you try to place a packet in the warehouse, if you find a place, go to next packet, otherwise, if you fail to find a place, you backtrack to move previous packet until you success.
To reduce computing time, you sort packets by difficulty to place, starting by the most difficult.
The base of your program will be a recursive tree exploration program.

By the way, your program will fail when a difficult packet comes and the only place is already in use, in this case, you have to backtrack.
Patrice

“Everything should be made as simple as possible, but no simpler.” Albert Einstein

QuestionStrict alternation Pin
Bowri18-Aug-15 4:11
Bowri18-Aug-15 4:11 
AnswerRe: Strict alternation Pin
Simon_Whale18-Aug-15 5:12
Simon_Whale18-Aug-15 5:12 
GeneralRe: Strict alternation Pin
Bowri18-Aug-15 7:14
Bowri18-Aug-15 7:14 
GeneralRe: Strict alternation Pin
Richard MacCutchan18-Aug-15 7:40
mveRichard MacCutchan18-Aug-15 7:40 
GeneralRe: Strict alternation Pin
Bowri18-Aug-15 18:11
Bowri18-Aug-15 18:11 
AnswerRe: Strict alternation Pin
Patrice T21-Aug-15 12:16
mvePatrice T21-Aug-15 12:16 
Questionl-Exclusion Pin
Bowri18-Aug-15 4:09
Bowri18-Aug-15 4:09 
SuggestionRe: l-Exclusion Pin
Richard MacCutchan18-Aug-15 6:39
mveRichard MacCutchan18-Aug-15 6:39 
GeneralRe: l-Exclusion Pin
Bowri18-Aug-15 7:17
Bowri18-Aug-15 7:17 
GeneralRe: l-Exclusion Pin
Richard MacCutchan18-Aug-15 7:38
mveRichard MacCutchan18-Aug-15 7:38 
GeneralRe: l-Exclusion Pin
Bowri18-Aug-15 18:10
Bowri18-Aug-15 18:10 
GeneralRe: l-Exclusion Pin
Richard MacCutchan18-Aug-15 21:49
mveRichard MacCutchan18-Aug-15 21:49 
QuestionCounting Semaphore Using Test&Set() Pin
Bowri18-Aug-15 4:08
Bowri18-Aug-15 4:08 
QuestionLENGTH of the maximum contiguous sum Pin
Member 1187537030-Jul-15 11:56
Member 1187537030-Jul-15 11:56 
GeneralRe: LENGTH of the maximum contiguous sum Pin
PIEBALDconsult30-Jul-15 12:06
mvePIEBALDconsult30-Jul-15 12:06 
GeneralRe: LENGTH of the maximum contiguous sum Pin
Member 1187537030-Jul-15 12:25
Member 1187537030-Jul-15 12:25 
GeneralRe: LENGTH of the maximum contiguous sum Pin
PIEBALDconsult30-Jul-15 12:33
mvePIEBALDconsult30-Jul-15 12:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.