On solving optimal policies for event-based dynamic programming