(self, evaluations, max_time, success_cost, verbose, max_memory=INF)
| 24 | |
| 25 | class SolutionStore(object): |
| 26 | def __init__(self, evaluations, max_time, success_cost, verbose, max_memory=INF): |
| 27 | # TODO: store a map from head to value? |
| 28 | # TODO: include other problem information here? |
| 29 | # TODO: determine when the plan converges |
| 30 | self.evaluations = evaluations |
| 31 | #self.initial_evaluations = copy.copy(evaluations) |
| 32 | self.start_time = time.time() |
| 33 | self.max_time = max_time |
| 34 | self.max_memory = max_memory |
| 35 | self.success_cost = success_cost # Inclusive |
| 36 | self.verbose = verbose |
| 37 | #self.best_cost = self.cost_fn(self.best_plan) |
| 38 | self.solutions = [] |
| 39 | self.sample_time = 0. |
| 40 | @property |
| 41 | def search_time(self): |
| 42 | return self.elapsed_time() - self.sample_time |
nothing calls this directly
no outgoing calls
no test coverage detected