(self, plan, cost)
| 48 | def best_cost(self): |
| 49 | return self.solutions[-1].cost if self.solutions else INF |
| 50 | def add_plan(self, plan, cost): |
| 51 | # TODO: double-check that plan is a solution |
| 52 | if is_plan(plan) and (cost < self.best_cost): |
| 53 | self.solutions.append(Solution(plan, cost, elapsed_time(self.start_time))) |
| 54 | def has_solution(self): |
| 55 | return is_plan(self.best_plan) |
| 56 | def is_solved(self): |
no test coverage detected