Keep the same owners.
Each agent has its own task queue. Make A2 unavailable: can the other two finish work that still belongs to A2?
03 / Coordination · Beginner
Who takes the job? When is it finished?
Three agents. Six observation points. Choose who goes where,
then watch each agent travel and complete its work.
A1 receives T1, a point 0.8 m away.
At the point. Service has not started yet.
After 2 s of service, T1 counts as finished.
A browser simulation of planar point motion. The 3D scene shows the same run, with no flight physics, collision avoidance or live execution.
Before you begin
Compare fixed round-robin, nearest-pair greedy and the Hungarian algorithm. All three use one central coordinator; the assignment rule changes.
Explore the four questionsChoose owners in a fixed cycle, match nearest pairs, or minimize the current matching’s total distance.
Travel and service are explicit states with completion conditions. An assignment is only a target.
One coordinator assigns targets using exact status and position reports. This comparison changes the rule, while keeping authority fixed.
0.1 s intervals. Failures are reported immediately, with no packet loss, heartbeat or communication delay.
Execution: one browser model of planar point motion. Both views observe it. The 3D quadrotors use a fixed display altitude of 1.5 m. Station rings show completed service; the yard is illustrative. There are no obstacles, collision avoidance, sensor images or flight dynamics in this task-allocation experiment.
01 / Try it
Circles: agents · squares: tasks · dashed line: assigned target. Select an agent to inspect its executor.
Track each task
Look inside
Normal cycle: idle → travelling → servicing → idle. Unavailable is terminal for this run. Executors receive only their own position, state and assigned task.
The coordinator receives exact status and position reports. Each executor receives only its own target and state. Mission time and total travel are evaluator measurements.
| Agent | State | Target | x | y | Travelled |
|---|
Inspect the choice
Costs are straight-line distances at this saved decision in the current simulation. Selected cells carry ✓. Busy executors and completed tasks do not enter a new matching.
Read the sequence
Latest 30 events. Completion reports precede a same-boundary failure; dispatch follows both.
02 / Follow a question
Change the rule. See what gets assigned, and what gets finished.
Each agent has its own task queue. Make A2 unavailable: can the other two finish work that still belongs to A2?
A1 takes the closest task first. What does that leave for A2? Inspect the first dispatch and add the three selected distances.
A1 travels farther so A2 can travel less. The first matching costs 5.2 m. Does optimizing one dispatch guarantee the best whole mission?
With greedy allocation, A2 loses 1 s of service when it stops. Advance to 5 s, then watch when an agent becomes free to take the released task.
Each case starts paused with the stated rule and failure preset. Pairings and event order are schematic, not recorded trajectories.
Same starts, tasks, travel speed, service duration and budget. Each run stops at its first outcome. A blocked run’s short duration is not a successful completion time.
| Policy | A2 at 5 s | Outcome | Completed | Time | Travel | Reassigned | Lost service |
|---|
03 / Go deeper
The Hungarian algorithm minimizes the sum of distances in the current dispatch. The finite-state executor still has to travel and finish service.
Same starts and six available tasks. Different pairings for A1 and A2; A3 takes T3 in both.
This compares current matching costs, not whole-mission travel or completion times.
A2 stops at 5.0 s and its active task returns to pending. The coordinator learns this immediately. No real failure detector is implemented.
All six tasks must complete 2 s of service. If no assignment or execution can proceed while work remains, the result is blocked. Otherwise the budget is 60 s.
Primary assignment source: H. W. Kuhn (1955), The Hungarian method for the assignment problem ↗. This workshop uses a rectangular minimum-cost variant, recomputed for idle agents and pending tasks. It does not claim an optimal multi-stop mission schedule.
An optimal current matching does not guarantee an optimal whole-mission schedule. Completed work stays completed; interrupted service restarts. Immediate failure detection does not imply immediate reassignment.
Keep the thread
Explore central, hierarchical and peer decisions in a separate experiment with message delivery and local report caches.