task_allocation/lib.rs
1//! # Task allocation
2//!
3//! Decentralized multi-agent task allocation: agents decide among themselves who does
4//! which task, exchanging bids whenever they can communicate, without a central authority.
5//!
6//! ## Scope
7//!
8//! - Consensus-based bundle algorithm (CBBA) and its variants, converging to conflict-free
9//! assignments under delayed and intermittent communication
10//! - Sequential and combinatorial auctions as baselines
11//! - Task scores from user-supplied costs, such as travel time, deadlines or resource use
12//!
13//! Repository: <https://github.com/sunsided/task-allocation>
14
15#![no_std]
16
17/// An agent's valuation of tasks, used to place bids.
18pub trait Valuation<Task> {
19 /// The score of adding `task` to the agent's current bundle; higher is better, and
20 /// `None` means the agent cannot take the task.
21 fn marginal_score(&self, bundle: &[Task], task: &Task) -> Option<u64>;
22}