The Optimal Planner