I have the following problem to solve and believe that there is probably some standard optimisation algorithm that either meets or would bend to my needs.
Assume that I have a piece of string of a given length. It must be cut into a number of pieces but each piece must fit within a certain length range. There can be more than one such non-contiguous range.
For example. Assume I have a piece of string 18.6cm long and that it must be cut so that I get pieces in the range 6-8cm or 9-10cm. This could clearly be done in more than one way (9,9.6 or 9.3,9.3 for example).
Anyone help?
Assume that I have a piece of string of a given length. It must be cut into a number of pieces but each piece must fit within a certain length range. There can be more than one such non-contiguous range.
For example. Assume I have a piece of string 18.6cm long and that it must be cut so that I get pieces in the range 6-8cm or 9-10cm. This could clearly be done in more than one way (9,9.6 or 9.3,9.3 for example).
Anyone help?
Comment