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

Method export_summary

pddlstream/algorithms/common.py:69–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 SOLUTIONS[:] = self.solutions
68 return revert_solution(self.best_plan, self.best_cost, self.evaluations)
69 def export_summary(self): # TODO: log, etc...
70 # TODO: SOLUTIONS
71 #status = SUCCEEDED if self.is_solved() else FAILED # TODO: INFEASIBLE, OPTIMAL
72 return {
73 'solved': self.is_solved(),
74 #'solved': self.has_solution(),
75 'solutions': len(self.solutions),
76 'cost': self.best_cost,
77 'length': get_length(self.best_plan),
78 'evaluations': len(self.evaluations),
79 'search_time': self.search_time,
80 'sample_time': self.sample_time,
81 'run_time': self.elapsed_time(),
82 'timeout': self.is_timeout(),
83 #'status': status,
84 }
85
86##################################################
87

Callers 2

solve_incrementalFunction · 0.95
solve_abstractFunction · 0.95

Calls 4

is_solvedMethod · 0.95
elapsed_timeMethod · 0.95
is_timeoutMethod · 0.95
get_lengthFunction · 0.90

Tested by

no test coverage detected