Dynamic-Programming-Optimal-Control-Problem

An industry has a machine which works constantly in the production line. In every time period k with k belongs to [0,K], where K is the time for a process, the industry must decide whether is going to keep the machine or replace it by selling it as a used equipment and buy a new one.