I need to implement an algorithm for optimal cutting linear materials. For example, for logs. There length of pieces that need to saw logs and the length of the logs.
Example:
Length of logs: 100
Length of piece
| Required number of piecesr |
| |
45 | 10 |
30 | 5 |
10 | 103 |
5 | 60 |
as a result should show the length of pieces resulting from each log and residue.
i have this material:
A Simple C# Genetic Algorithm
But I do not know how to apply it to my topic.
Has anyone encountered a similar problem?
sorry for my english,
thanks