TAUEvaluationStrategy

class negmas.gb.TAUEvaluationStrategy(n_outcomes=9223372036854775807, cardinality=9223372036854775807, accepted=NOTHING, offered=NOTHING, repeating=NOTHING, last=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, state, history)[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

Return type:

Union[tuple, None, Literal['continue']]

Returns:

GBResponse