OrdinalRanking

class negmas.preferences.OrdinalRanking(*args, **kwargs)[source]

Bases: Protocol

Outcomes can be ranked. Supports equality

Methods Summary

argrank(outcomes[, descending])

Ranks the given list of outcomes with weights.

rank(outcomes[, descending])

Ranks the given list of outcomes with weights.

Methods Documentation

abstract argrank(outcomes, descending=True)[source]

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

Return type:

list[list[int | None]]

Returns:

A list of lists of integers giving the outcome index in the input. The list is sorted by utlity value

abstract rank(outcomes, descending=True)[source]

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

Return type:

list[list[tuple | None]]

Returns:

A list of lists of integers giving the outcome index in the input. The list is sorted by utlity value