HillClimbingSTMechanism

class negmas.st.HillClimbingSTMechanism(*args, **kwargs)[source]

Bases: negmas.st.VetoSTMechanism

A single text mechanism that use hill climbing

Parameters
  • *args – positional arguments to be passed to the base Mechanism

  • **kwargs – keyword arguments to be passed to the base Mechanism

Methods Summary

neighbors(outcome)

Returns all neighbors

next_outcome(outcome)

Generate the next outcome given some outcome.

round()

Single round of the protocol

Methods Documentation

neighbors(outcome: Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]])List[Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]]][source]

Returns all neighbors

Neighbor is an outcome that differs any one of the issues from the original outcome.

next_outcome(outcome: Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]])Optional[Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]]][source]

Generate the next outcome given some outcome.

Parameters

outcome – The current outcome

Returns

a new outcome or None to end the mechanism run

round()negmas.mechanisms.MechanismRoundResult[source]

Single round of the protocol