Skip to main content

task_allocation/
auction.rs

1//! Auction baselines: sequential single-item auctions and combinatorial auctions.
2//!
3//! Both have an auctioneer: one process that collects every bid and announces the winners.
4//! They need fewer rounds of communication than consensus, but a single point that every
5//! agent must reach. Use them for comparison, or as a fallback when a central station is
6//! available.
7//!
8//! - [`sequential()`]: tasks go up for auction one at a time, in a fixed order. Every agent
9//!   bids its marginal gain on the current task, given what it already won, and the highest
10//!   bid wins. Cheap, but the order matters: a task auctioned early can go to an agent that
11//!   would have been more useful elsewhere.
12//! - [`combinatorial()`]: every agent bids on whole bundles, and the auctioneer picks at most
13//!   one bundle per agent, with no task in two of them, maximizing the total
14//!   ([`winner_determination`]). Agents can express that tasks are worth more together, at
15//!   the price of a search that grows with the number of bids.
16
17mod combinatorial;
18mod sequential;
19
20pub use combinatorial::{BundleBid, bundle_bids, combinatorial, winner_determination};
21pub use sequential::sequential;