Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Consensus-based bundle algorithm

Also known as CBBA

allocation task-allocation

The consensus-based bundle algorithm (CBBA) lets a team of agents split tasks among themselves without a central planner. Each agent alternates two phases: in the bundle phase it greedily adds the task with the highest marginal gain it can still win, bidding that gain as an integer u64 score, with ties going to the smaller agent id; in the consensus phase it merges each neighbour's winner table, task by task, with the published conflict-resolution table. When it learns it was outbid on a task, it drops that task and every task it added after it, since their bids assumed the lost one. Messages carry the sender's whole state with logical clocks, so they may be delayed, lost, duplicated or reordered, and a message older than what the receiver knows of its sender is ignored. With Replan::Keep an agent only adds to its bundle, as published in 2009, while Replan::Full rebuilds it every round and, with diminishing gains and every task known from the start, settles on a sequential greedy assignment up to tied gains; use CBBA when agents can only talk to whoever they reach, with no auctioneer or central planner.

Pseudocode

algorithm CBBA(i, V, L)input: agent i, its valuation V, capacity L, replanning mode (Keep, Last(k) or Full)output: a bundle for agent i; the team agrees on one winner per taskB ← ⟨⟩                                       ▷ tasks in the order i added them, each with a path positionfor each task j dowinner[j], bid[j] ← nil, 0seen[k] ← 0 for every agent k                ▷ logical clocksrepeatbuild-bundle()seen[i] ← seen[i] + 1broadcast ⟨i, winner, bid, seen⟩           ▷ the whole statefor each message m that arrives doreceive(m)until the team settlesprocedure build-bundle()release the tasks the replanning mode says, forgetting i's own bids on themwhile |B| < L doWIN ← {j ∉ B : g_j ← gain(V, B, j) > 0 and outbids(⟨i, g_j⟩, ⟨winner[j], bid[j]⟩)}if WIN = ∅ thenbreakj ← argmax over j ∈ WIN of g_j             ▷ marginal gain, an integer; ties to the first taskadd j to B, at its best position in the pathwinner[j], bid[j] ← i, g_jprocedure receive(m)if m.seen[m.sender] < seen[m.sender] thenreturn                                     ▷ stale: older than what i knows of the senderfor each task j doupdate, reset or leave ⟨winner[j], bid[j]⟩ by the conflict table, given m and seenseen[k] ← max(seen[k], m.seen[k]) for every agent kif some task of B is no longer won by i thenn ← position of the first such task in Bfor each task j after position n in B doif winner[j] = i thenwinner[j], bid[j] ← nil, 0             ▷ its bid assumed the lost taskB ← the first n − 1 tasks of Bfunction outbids(⟨a, x⟩, ⟨b, y⟩)return b = nil or x > y or (x = y and a < b) ▷ ties go to the smaller id

In the crates

  • task-allocation

    Each agent builds a bundle greedily from marginal gains and merges its neighbours' winner tables by the published conflict rules, over delayed, lossy and changing links; bundle replanning frees blocked slots.

    cbba::Agent

Lineage

Comes from

Nothing on this site.

Led to

Coupled-constraint CBBA builds on it

Papers

  1. Consensus-Based Decentralized Auctions for Robust Task Allocation Han-Lim Choi, L. Brunet, J. P. How · 2009· IEEE Transactions on Robotics introduces doi 10.1109/tro.2009.2022423
  2. Asynchronous Decentralized Task Allocation for Dynamic Environments Luke Johnson, Sameera Ponda, Han-Lim Choi, Jonathan How · 2011· Infotech@Aerospace 2011 extends doi 10.2514/6.2011-1441
  3. Partial Replanning for Decentralized Dynamic Task Allocation Noam Buckman, Han-Lim Choi, Jonathan P. How · 2019· AIAA Scitech 2019 Forum extends doi 10.2514/6.2019-0915 arXiv 1806.04836