4

At the beginning of year 1, a new machine must be purchased. The cost of maintaining a machine $i$ years old is given in Table 5. The cost of purchasing a machine at the beginning of each year is given in Table 6. There is no trade-in value when a machine is replaced. Your goal is to minimize the total cost (purchase plus maintenance) of having a machine for five years. Determine the years in which a new machine should be purchased.

The solution (from Chegg solutions) is given by:

enter image description here

enter image description here

enter image description here

1) What is the logic behind creating this massive objective function, if we could just calculate the optimal cost using dynamic programming?

2) Why is the sum of the first row equal to 1? Why is the second row of $X$'s equal to $X_{1,2}$ ?

3) I don't understand the logic behind the other equalities. If someone could explain, that would be great.

Slim Shady
  • 107
  • 14
  • @EhsanK I don't understand the answer they give. Otherwise yes, it's the same logic. But maybe there is another way I could solve this problem (maybe that's why the answer they give is different), and hence this question – Slim Shady Dec 26 '19 at 02:04
  • Can you include the data from those tables in the question? – EhsanK Dec 26 '19 at 03:03
  • @EhsanK yes, sorry i forgot to include them! – Slim Shady Dec 26 '19 at 05:33