A new result to generalize and extend a single machine scheduling problem solved by dynamic programming