Skip to content

Commit

Permalink
Update: Updated ProblemKind to version 2 (#2)
Browse files Browse the repository at this point in the history
* Update: Updated ProblemKind to version 2 (INT_NUMBERS)
  • Loading branch information
Framba-Luca authored Oct 27, 2023
1 parent fc7b63c commit 226dbbc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 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,11 @@ 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_quality_metrics("PLAN_LENGTH")
supported_kind.set_quality_metrics("OVERSUBSCRIPTION")

supported_kind.set_oversubscription_kind("INT_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 226dbbc

Please sign in to comment.