MCPcopy Create free account
hub / github.com/caelan/pddlstream / __init__

Method __init__

pddlstream/algorithms/common.py:26–39  ·  view source on GitHub ↗
(self, evaluations, max_time, success_cost, verbose, max_memory=INF)

Source from the content-addressed store, hash-verified

24
25class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected