TAUEvaluationStrategy

class negmas.gb.TAUEvaluationStrategy(n_outcomes: int = 9223372036854775807, cardinality: int = 9223372036854775807, accepted: dict[tuple | None, set[str]] = NOTHING, offered: dict[tuple | None, set[str]] = NOTHING, repeating: dict[str, bool] = NOTHING, last: dict[str, tuple | None] = NOTHING)[source]

Bases: EvaluationStrategy

Implements the Tentative-Accept Unique-Offers Generalized Bargaining Protocol.

Attributes Summary

cardinality

n_outcomes

Methods Summary

__call__(negotiator_ids, state, history, ...)

Base class for evaluation strategies

Attributes Documentation

cardinality: int
n_outcomes: int

Methods Documentation

__call__(negotiator_ids: list[str], state: GBState, history: list[GBState], active_thread: int | None) tuple | None | Literal['continue'][source]

Base class for evaluation strategies

Parameters:
  • negotiator_ids (list[str]) – List of negotiator IDs (in the same order as threads)

  • state (GBState) – Current state of the mechanism

  • history (list[GBState]) – History of past states

  • active_thread (int | None) – If integer, the current thread (used for local evaluators). Global evaluators

Returns:

GBResponse