Abstract
Concurrent action execution is important for plan-length minimization. However, action specifications are often limited to avoid conflicts arising from precondition/effect interactions. PDDL -- the planning domain definition language -- for example, implements the "no moving targets" rule, which means that no two actions can simultaneously make use of a value if one of the two is updating the value. This rule poses problems for resource allocation planning in which resource values are accessed in preconditions and effects. A simple example is construction actions that consume certain amounts of a resource. For speeding up plan execution, we would like to be able to dispatch several construction actions simultaneously. Because action preconditions depend on resource values and action effects change them, the "no moving targets" rule does not allow concurrent execution. However, if sufficient resources are available, executing actions simultaneously poses no problems. This paper addresses the problem of deciding whether a set of actions produced by a planning system can be executed concurrently in the presence of fluent variables that occur in both action preconditions and effects. We first motivate the concurrent action execution problem by introducing a fair action scheduling algorithm for real-time strategy (RTS) games. Then we prove that the general decision problem, when restricting effects and preconditions to polynomial time computations, is co-NP complete. Thereafter, we focus on problem restrictions based on commutative operators which allow us to specify sufficient conditions for concurrent executability that can be checked quickly if the number of shared fluents is small. Finally, we apply these findings to action execution with shared resources in RTS games.
Introduction
In classical AI planning, the "no moving targets" rule prevents two actions from interacting with the same variable simultaneously if one action modifies it. While this ensures logical consistency, it is often overly restrictive for resource management in dynamic environments like Real-Time Strategy (RTS) games. For instance, if a player has 500 gold and wishes to train five units costing 100 gold each, standard PDDL rules would forbid simultaneous dispatch because all five actions attempt to update the gold variable at once. Logically, however, these actions are safe to execute concurrently as long as the total resource requirement does not exceed the current balance.
This research establishes a formal framework to determine when a set of actions can be safely executed concurrently without violating preconditions or resulting in inconsistent states.
Defining Concurrent Action Execution (CAE)
The authors define CAE through the lens of serializability. A set of actions is considered concurrently executable if every possible permutation of those actions satisfies two conditions:
- Sequential Validity: All action preconditions are met at every step of the sequence.
- State Invariance: Every permutation results in the exact same final state (the fluent vector).
In a multi-player server environment, the specific order of action processing is often randomized to ensure fairness. Thus, a plan is only "concurrently safe" if it remains valid regardless of the shuffle order.
Complexity and Tractability
The general problem of deciding if a set of actions is concurrently executable is proven to be co-NP-complete via a reduction from the Subset Sum problem. This suggests that a universal polynomial-time algorithm is unlikely for all types of planning domains.
To achieve tractability, the paper focuses on commutative operators. In resource management, effects like addition and subtraction are commutative; the order of operations does not affect the final sum. By leveraging this property, the authors propose two geometric verification tests:
- Box Test: This test verifies if preconditions hold across the entire range of possible resource values that could occur during any execution permutation.
- Corner Test: For specific preconditions, such as linear inequalities or concave functions, safety can be guaranteed by checking only the "corners" (the absolute minimum and maximum possible resource levels).
Key Results and Application
The research demonstrates that for RTS-style problems involving linear inequalities and commutative effects, the Corner Test significantly reduces computational complexity. Instead of checking $n!$ permutations, the problem becomes manageable even with large action sets, provided the number of shared resources (fluents) remains small. This allows game servers to verify the safety of simultaneous unit production or building construction in real-time.
Conclusion and Future Work
While the Corner Test provides a fast verification method for concave or linear preconditions, its efficiency is tied to the number of shared fluents ($m$), scaling at $2^m$. Future work may address scenarios with high numbers of interdependent variables or non-linear logic. Additionally, while this paper focuses on verifying concurrency, the real-time generation of optimal concurrent plans remains an open challenge in AI planning.
Summary updated