Skip to main content

Module ccbba

Module ccbba 

Source
Expand description

Coupled-constraint CBBA (CCBBA): CBBA for tasks that need, or exclude, each other.

Some tasks only make sense together, such as a strike that needs a sensor, and some exclude each other. Constraints describes these relations in activities. An Agent runs CBBA with the extensions of Whitten, Choi, Johnson and How, “Decentralized Task Allocation with Coupled Constraints in Complex Missions”, American Control Conference 2011:

  • Pessimistic bidding: an agent bids on a task only once every task it depends on has a winner. Tasks with no mutual dependency are bid on this way.
  • Optimistic bidding: on a task with at least one mutual dependency, an agent may bid first and wait for its partners, for all its dependencies, one-way ones included, as in the paper (O_jq non-empty). If they do not appear within Optimism::timeout rounds, it gives the task up and loses one of a limited number of attempts. Once the attempts are used up, it bids pessimistically.
  • Mutual exclusion: an agent bids on a task only if it outbids every task excluded by it, and gives a task up once an excluded task’s winner outbids it.

Each round, an agent first gives up the tasks whose constraints fail, then runs the bundle phase; messages and the conflict table are CBBA’s.

The paper promises no convergence, and there is none in general: constrained gains do not diminish, by design. An agent can keep outbidding a partner on a task whose dependency only that partner’s bundle provides, so the partner releases the dependency, the agent gives the task up, the partner rebuilds both, and the cycle repeats. The tests pin such a case. The timeouts and attempt counts are the caller’s choice; the paper gives no values.

Choices this implementation makes where the paper is silent:

  • Eligibility is decided at the start of each bundle phase, from the winners known then. A task that depends on another the agent adds in the same phase becomes eligible in the next round.
  • The count of rounds an optimistic task waited resets once its dependencies are met.
  • Ties in mutual exclusion go to the smaller agent, as everywhere in this crate; a strict comparison would make both tasks give way.

Structs§

Agent
One CCBBA agent: a CBBA agent whose bids respect coupled constraints.
Constraints
Assignment constraints between tasks: which tasks need others, and which exclude each other.
Optimism
How long, and how often, an agent bids optimistically on a task in a mutual dependency.
TimedAgent
One CCBBA agent with temporal constraints, scheduling its bundle on a route.
TimedMessage
A TimedAgent’s broadcast: CBBA’s message, plus the start of every winning bid the sender knows of.
Windowed
A route that keeps each task within a window imposed by the starts of its partners.

Enums§

ConstraintError
Why an activity was rejected.