Text this: The role of dynamic programming in the distribution of investment allocations between production lines with an application