Skip to content

Commit

Permalink
Update: Updated ProblemKind to version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Framba-Luca committed Oct 25, 2023
1 parent fc7b63c commit a30a158
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions up_symk/symk.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def satisfies(optimality_guarantee: "OptimalityGuarantee") -> bool:

@staticmethod
def supported_kind() -> "ProblemKind":
supported_kind = ProblemKind()
supported_kind = ProblemKind(version=2)
supported_kind.set_problem_class("ACTION_BASED")
supported_kind.set_typing("FLAT_TYPING")
supported_kind.set_typing("HIERARCHICAL_TYPING")
Expand All @@ -114,9 +114,13 @@ def supported_kind() -> "ProblemKind":
supported_kind.set_effects_kind("FORALL_EFFECTS")
supported_kind.set_quality_metrics("ACTIONS_COST")
supported_kind.set_actions_cost_kind("STATIC_FLUENTS_IN_ACTIONS_COST")
supported_kind.set_actions_cost_kind("INT_NUMBERS_IN_ACTIONS_COST")
supported_kind.set_actions_cost_kind("REAL_NUMBERS_IN_ACTIONS_COST")
supported_kind.set_quality_metrics("PLAN_LENGTH")
supported_kind.set_quality_metrics("OVERSUBSCRIPTION")

supported_kind.set_oversubscription_kind("INT_NUMBERS_IN_OVERSUBSCRIPTION")
supported_kind.set_oversubscription_kind("REAL_NUMBERS_IN_OVERSUBSCRIPTION")

# Attempt to set the supported fluents type of "DERIVED_FLUENTS" (depends on UP version)
if "FLUENTS_TYPE" in FEATURES and "DERIVED_FLUENTS" in FEATURES["FLUENTS_TYPE"]:
supported_kind.set_fluents_type("DERIVED_FLUENTS")
Expand Down

0 comments on commit a30a158

Please sign in to comment.