Finding Optimal Solutions to Cooperative Pathfinding Problems

40
Solutions to Cooperative Pathfinding Problems Trevor Standley Computer Science Department University of California, Los Angeles http://cs.ucla.edu/~tstand/

description

Finding Optimal Solutions to Cooperative Pathfinding Problems. Trevor Standley Computer Science Department University of California, Los Angeles http://cs.ucla.edu/~tstand/. Introduction. Pathfinding Problems A single agent must find a path from a start state to a goal state - PowerPoint PPT Presentation

Transcript of Finding Optimal Solutions to Cooperative Pathfinding Problems

Page 1: Finding Optimal Solutions to Cooperative Pathfinding Problems

Finding Optimal Solutions to Cooperative Pathfinding ProblemsTrevor Standley

Computer Science Department

University of California, Los Angeles

http://cs.ucla.edu/~tstand/

Page 2: Finding Optimal Solutions to Cooperative Pathfinding Problems

Introduction Pathfinding Problems

A single agent must find a path from a start state to a goal state

Cooperative Pathfinding Problems Multiple agents interact

Want to minimize the total cost

Page 3: Finding Optimal Solutions to Cooperative Pathfinding Problems

Motivation

Page 4: Finding Optimal Solutions to Cooperative Pathfinding Problems

Motivation

Page 5: Finding Optimal Solutions to Cooperative Pathfinding Problems

Motivation

Page 6: Finding Optimal Solutions to Cooperative Pathfinding Problems

My Formulation Gridworld pathfinding

Page 7: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 8: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 9: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 10: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 11: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 12: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 13: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 14: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 15: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 16: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 17: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 18: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 19: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 20: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 21: Finding Optimal Solutions to Cooperative Pathfinding Problems

Related Work Centralized Approaches

Strengths: Typically complete, can be optimal

Weaknesses: Takes forever!

Decoupled Approaches Strengths: Fast

Weaknesses: Incomplete and suboptimal

Page 22: Finding Optimal Solutions to Cooperative Pathfinding Problems

The Standard Algorithm The standard algorithm is A*

Centralized algorithm

There is a standard heuristic

State representation – A position for each agent

State space – Exponential in the number of agents

An operator – Complete assignment of moves to agents- One of {N; NE; E; SE; S; SW; W; NW; and wait} for each agent

- Exponential in the number of agents

Obviously this algorithm is not taken seriously

Page 23: Finding Optimal Solutions to Cooperative Pathfinding Problems

My algorithm Optimal Complete Two main contributions

Operator decomposition

Independence detection

Page 24: Finding Optimal Solutions to Cooperative Pathfinding Problems

Operator Decomposition Intuition

Also a centralized algorithm

Still use A*

Change how operators are defined: only one agent moves at a time

Simple idea, tricky to get details right

Page 25: Finding Optimal Solutions to Cooperative Pathfinding Problems

Operator Decomposition Each operator assigns a move to a single agent Assignments are made in a fixed order Move assignments stored as part of the state

representation

Page 26: Finding Optimal Solutions to Cooperative Pathfinding Problems

Operator Decomposition Example

Page 27: Finding Optimal Solutions to Cooperative Pathfinding Problems

Operator Decomposition

Page 28: Finding Optimal Solutions to Cooperative Pathfinding Problems

The Savings of Operator Decomposition

Page 29: Finding Optimal Solutions to Cooperative Pathfinding Problems

Consequences of Operator Decomposition Branching factor becomes polynomial However, state space still exponential

Page 30: Finding Optimal Solutions to Cooperative Pathfinding Problems

Simple Independence Detection

Page 31: Finding Optimal Solutions to Cooperative Pathfinding Problems

Simple Independence Detection

1. Create a group for each agent

2. Plan paths for each group independently

3. Check for conflicts in new paths

4. Combine groups with conflicting paths

5. Repeat 2-4 until no conflicts

Page 32: Finding Optimal Solutions to Cooperative Pathfinding Problems

Simple Independence Detection

Page 33: Finding Optimal Solutions to Cooperative Pathfinding Problems

Simple Independence Detection Problem Are these agents independent?

Page 34: Finding Optimal Solutions to Cooperative Pathfinding Problems

Simple Independence Detection Problem Are these agents independent?

Page 35: Finding Optimal Solutions to Cooperative Pathfinding Problems

Better Independence Detection When a conflict is detected between two groups, try

to find an alternate path for one of the groups If that fails try to find an alternate path for the other

group Only combine groups if no alternate path could be

found

Page 36: Finding Optimal Solutions to Cooperative Pathfinding Problems

Independence Detection Which alternate paths are the best? Only search for optimal paths Paths can be found using operator decomposition Find paths that will lead to fewest number of future

conflicts Operator decomposition can be modified to find

optimal paths with few future conflicts

Page 37: Finding Optimal Solutions to Cooperative Pathfinding Problems

My Algorithm Uses decoupled planning where possible Only uses centralized planning for non-independent

subproblems Calls operator decomposition as a subroutine to do

the centralized planning

Page 38: Finding Optimal Solutions to Cooperative Pathfinding Problems

Results 10000 randomly generated problems with 2-60 agents

Page 39: Finding Optimal Solutions to Cooperative Pathfinding Problems

Conclusions Researchers have developed centralized and

decoupled approaches for solving cooperative pathfinding problems

Operator decomposition is an improved centralized approach

Independence detection is a hybrid approach Only uses centralized planning when necessary

Page 40: Finding Optimal Solutions to Cooperative Pathfinding Problems

Acknowledgments My advisor, Rich Korf. Dawn Chen for editing, advice, and artwork