Click here to Skip to main content
15,919,931 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Nesting and Optimization Logic Process Pin
Hoss Fly20-Sep-07 20:30
Hoss Fly20-Sep-07 20:30 
GeneralRe: Nesting and Optimization Logic Process Pin
ruready51121-Sep-07 3:54
ruready51121-Sep-07 3:54 
GeneralRe: Nesting and Optimization Logic Process Pin
Hoss Fly21-Sep-07 14:04
Hoss Fly21-Sep-07 14:04 
AnswerRe: Nesting and Optimization Logic Process [modified] Pin
cp987621-Sep-07 19:43
cp987621-Sep-07 19:43 
GeneralRe: Nesting and Optimization Logic Process Pin
Hoss Fly21-Sep-07 20:46
Hoss Fly21-Sep-07 20:46 
GeneralRe: Nesting and Optimization Logic Process Pin
ruready51122-Sep-07 18:33
ruready51122-Sep-07 18:33 
GeneralRe: Nesting and Optimization Logic Process Pin
Hoss Fly23-Sep-07 4:30
Hoss Fly23-Sep-07 4:30 
GeneralRe: Nesting and Optimization Logic Process Pin
cp987622-Sep-07 21:38
cp987622-Sep-07 21:38 
I suggested that a well-known algorithm may be applicable, and from the posting I guessed that the OP would not be aware that tried and tested source code was available - so I posted a link to one. It would be silly for a professional programmer to try to solve the multiple knapsack problem without at least considering the standard codes. Get offended if you like - it's your blood pressure.

From re-reading the original post, the fact that the standard lengths are not fixed but come in increments of 5' means that the multiple knapsack is not optimal. It would give you an efficient way of quickly testing different bundles - e.g. if you need 73' as in my example, you could try your inventory plus 3 lengths of 25', 3 of 30' and see if a solution existed.

If the number of lengths is small then the problem can be efficiently solved with an exhaustive search, but the complexity quickly escalates as the number of lengths increases.




Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

QuestionCalculating work-hour-only time differences Pin
sushicw18-Sep-07 7:43
sushicw18-Sep-07 7:43 
AnswerRe: Calculating work-hour-only time differences Pin
Dan Neely18-Sep-07 7:52
Dan Neely18-Sep-07 7:52 
QuestionCalculate lateral acceleration Pin
AlexB4718-Sep-07 2:25
AlexB4718-Sep-07 2:25 
AnswerRe: Calculate lateral acceleration Pin
Russell'18-Sep-07 4:27
Russell'18-Sep-07 4:27 
AnswerRe: Calculate lateral acceleration Pin
El Corazon18-Sep-07 5:17
El Corazon18-Sep-07 5:17 
GeneralRe: Calculate lateral acceleration Pin
AlexB4726-Sep-07 5:15
AlexB4726-Sep-07 5:15 
GeneralRe: Calculate lateral acceleration Pin
El Corazon26-Sep-07 6:39
El Corazon26-Sep-07 6:39 
QuestionNeural Network Pin
tanj005617-Sep-07 0:04
tanj005617-Sep-07 0:04 
AnswerRe: Neural Network Pin
ic3b3rg317-Sep-07 4:48
ic3b3rg317-Sep-07 4:48 
GeneralRe: Neural Network Pin
tanj005618-Sep-07 4:51
tanj005618-Sep-07 4:51 
QuestionHamiltonian algorithms Pin
Patrick Etc.16-Sep-07 12:05
Patrick Etc.16-Sep-07 12:05 
AnswerRe: Hamiltonian algorithms Pin
Tim Craig17-Sep-07 17:59
Tim Craig17-Sep-07 17:59 
GeneralRe: Hamiltonian algorithms Pin
Patrick Etc.18-Sep-07 6:45
Patrick Etc.18-Sep-07 6:45 
QuestionTumbnail algorithm Pin
martin_hughes14-Sep-07 0:33
martin_hughes14-Sep-07 0:33 
AnswerRe: Tumbnail algorithm Pin
Giorgi Dalakishvili14-Sep-07 0:54
mentorGiorgi Dalakishvili14-Sep-07 0:54 
GeneralRe: Tumbnail algorithm Pin
martin_hughes14-Sep-07 1:30
martin_hughes14-Sep-07 1:30 
GeneralRe: Tumbnail algorithm Pin
Giorgi Dalakishvili14-Sep-07 1:35
mentorGiorgi Dalakishvili14-Sep-07 1:35 

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.