Dynamic Programming of Station Schedule