task-allocation 0.2.0

Decentralized multi-agent task allocation: consensus-based bundle algorithm (CBBA) and auctions that converge to conflict-free assignments over delayed, intermittent communication
Documentation
//! Centralized reference allocations, computed with full knowledge of every agent's
//! valuation.
//!
//! These are not decentralized: one process sees every valuation. They serve as references
//! for the decentralized algorithms, and as fallbacks when a central planner is available.
//!
//! - [`sequential_greedy`] repeatedly gives the single most valuable remaining task to the
//!   agent that values it most. When the valuations are submodular set functions (the order
//!   of tasks does not matter and gains diminish), the property tests check that it scores
//!   at least half the optimum without capacity limits, and at least a third with them, the
//!   bounds known for greedy over one and two matroids.
//! - [`optimal`] finds the best assignment by exhaustive search, for small instances.
//!
//! Both maximize the same objective, [`Assignment::value`]: the sum, over agents, of the
//! marginal gains recorded while each bundle was built.
//!
//! [`Assignment::value`]: crate::Assignment::value

mod exact;
mod greedy;

pub use exact::{MAX_OPTIMAL_TASKS, optimal};
pub use greedy::sequential_greedy;