DummyElicitor

class negmas.elicitation.DummyElicitor(user: User, *, strategy: Optional[EStrategy] = None, base_negotiator: negmas.sao.negotiators.SAONegotiator = <negmas.sao.negotiators.AspirationNegotiator object>, opponent_model_factory: Optional[Callable[[AgentMechanismInterface], DiscreteAcceptanceModel]] = <function BaseElicitor.<lambda>>, expector_factory: Union[Expector, Callable[[], Expector]] = <class 'negmas.elicitation.expectors.MeanExpector'>, single_elicitation_per_round=False, continue_eliciting_past_reserved_val=False, epsilon=0.001, true_utility_on_zero_cost=False)[source]

Bases: negmas.elicitation.BaseElicitor

A dummy elicitation algorithm that does not do any elicitation.

Methods Summary

can_elicit()

Returns whether we can do more elicitation

elicit_single(state)

Does a single elicitation act

init_elicitation(ufun, **kwargs)

Called once to initialize the elicitation process

utility_on_rejection(outcome, state)

Estimated utility if this outcome rejected at this state.

Methods Documentation

can_elicit()bool[source]

Returns whether we can do more elicitation

elicit_single(state: negmas.common.MechanismState)[source]

Does a single elicitation act

Parameters

state – mechanism state

init_elicitation(ufun: Optional[Union[IPUtilityFunction, UtilityDistribution]], **kwargs)[source]

Called once to initialize the elicitation process

Parameters
  • ufun – The probabilistic utility function

  • **kwargs

Remarks:
  • If no ufun is given one will be created with 0-1 uniform distributions and zero reserved value.

  • If a single UtilityDistribution is given as ufun, it is repeated for all outcomes (and the reserved value is set to zero).

  • If a list of UtilityDistribution s is given, it must have the same length as the list of outcomes of this negotiation and is used to set the ufun.

  • The opponent model

utility_on_rejection(outcome: Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]], state: negmas.common.MechanismState)Union[negmas.helpers.Distribution, float][source]

Estimated utility if this outcome rejected at this state.

Parameters
  • outcome – The outcome tested

  • state – The mechanism state

Remarks:
  • MUST be implemented by any Elicitor.