SorterMixin

class negmas.negotiators.SorterMixin[source]

Bases: object

Adds the ability to sort outcomes according to utility. Outcomes of equal utility are ordered arbitrarily. None stands for the null outcome

Methods Summary

init()

sort(outcomes[, descending])

Ranks the given list of outcomes.

Methods Documentation

init()[source]
sort(outcomes: List[Optional[Outcome]], descending=True)None[source]

Ranks the given list of outcomes. None stands for the null outcome.

Returns

  • The outcomes are sorted IN PLACE.

  • There is no way to know if the ufun is not defined from the return value. Use has_ufun to check for the availability of the ufun