Skip to content

Commit ea9730f

Browse files
authored
Merge pull request #95 from APLA-Toolbox/fix-relaxed-critical
Log warning when using Relaxed CP
2 parents 3d02d97 + e642ab7 commit ea9730f

File tree

3 files changed

+2
-42
lines changed

3 files changed

+2
-42
lines changed

example-run.txt

Lines changed: 0 additions & 42 deletions
This file was deleted.

jupyddl/automated_planner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def greedy_best_first_search(
199199
elif "delete_relaxation" in heuristic_key:
200200
heuristic = DeleteRelaxationHeuristic(self, heuristic_key)
201201
elif "relaxed_critical_path" in heuristic_key:
202+
logging.warning("Relaxed Critical Path is deficient for H^2 and H^3")
202203
heuristic = RelaxedCriticalPathHeuristic(self, int(heuristic_key[-1]))
203204
elif "critical_path" in heuristic_key:
204205
heuristic = CriticalPathHeuristic(self, int(heuristic_key[-1]))

jupyddl/heuristics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ def compute(self, state):
172172
if self.automated_planner.satisfies(goals, state):
173173
costs = []
174174
fact_costs_str = dict([(str(k), val) for k, val in fact_costs.items()])
175+
print(fact_costs_str)
175176
if self.critical_path_level == 1:
176177
for g in goals:
177178
if str(g) in fact_costs_str:

0 commit comments

Comments
 (0)