Skip to content

Commit

Permalink
Merge pull request #594 from aiplan4eu/fix-implies-problem-kind
Browse files Browse the repository at this point in the history
Fix IMPLY ProblemKind
  • Loading branch information
alvalentini committed Apr 12, 2024
2 parents 1a540af + 722a58d commit eca4ee0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unified_planning/model/multi_agent/ma_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def _update_problem_kind_condition(self, exp: "up.model.fnode.FNode"):
self._kind.set_conditions_kind("EQUALITIES")
if OperatorKind.NOT in ops:
self._kind.set_conditions_kind("NEGATIVE_CONDITIONS")
if OperatorKind.OR in ops:
if OperatorKind.OR in ops or OperatorKind.IMPLIES in ops:
self._kind.set_conditions_kind("DISJUNCTIVE_CONDITIONS")
if OperatorKind.EXISTS in ops:
self._kind.set_conditions_kind("EXISTENTIAL_CONDITIONS")
Expand Down
2 changes: 1 addition & 1 deletion unified_planning/model/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ def update_problem_kind_expression(
self.kind.set_conditions_kind("EQUALITIES")
if OperatorKind.NOT in ops:
self.kind.set_conditions_kind("NEGATIVE_CONDITIONS")
if OperatorKind.OR in ops:
if OperatorKind.OR in ops or OperatorKind.IMPLIES in ops:
self.kind.set_conditions_kind("DISJUNCTIVE_CONDITIONS")
if OperatorKind.EXISTS in ops:
self.kind.set_conditions_kind("EXISTENTIAL_CONDITIONS")
Expand Down

0 comments on commit eca4ee0

Please sign in to comment.