Skip to main content

Module centralized

Module centralized 

Source
Expand description

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.

Constants§

MAX_OPTIMAL_TASKS
The most tasks optimal accepts.

Functions§

optimal
The assignment of tasks 0..tasks to agents, each holding at most capacity tasks, with the highest Assignment::value.
sequential_greedy
The sequential greedy assignment of tasks 0..tasks to agents, each holding at most capacity tasks.