• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Optimization Problem

Status
Not open for further replies.

C1

Platinum Member
Im sure that this exists, but where?

How can M out of N song titles be selected to best fit (ie, minimize remaining available time) on a linear tape (reel recorder)?

There should be a ready to go algorithm for this. Does anyone know where it would be?

So a friend who collects music feels that it is critical to best fill the remaining available record time when archiving to reel-to-reel tape. So pick the best combination of M out of N songs on an LP to closest fit the end of the tape (ie, minimize the available record time remaining).

I believe that Ive seen this provided somewhere already as a calculator (but not recently).
 
Youre right & actually that helps a lot so thanks. I think N<=12 should be enough and hopefully I have this algorithm ready to go in the Woolsey's "Quick & Dirties" handbook.
(Been a long ass time since I took LP/OR Methods.)
 
Generally for optimization problems (Most of which are usually knapsack variant), I would recommend a genetic algorithm. Essentially, you are just picking random combinations and taking the best. (True genetic algorithms have breading ect.) Even though it sounds crazy, it usually converges on an optimal solution very quickly.
 
Status
Not open for further replies.
Back
Top