CardinalProb
- class negmas.preferences.CardinalProb(*args, **kwargs)[source]
-
Differences between outcomes are meaningfull but probabilistic.
- Remarks:
Inheriting from this class adds
is_not_worse
implementation that is extremely conservative. It declares thatfirst
is not worse thansecond
only if any sample formfirst
is ALWAYS not worse than any sample fromsecond
.
Attributes Summary
Returns the utility_function base type ignoring discounting and similar wrappings.
Returns the preferences type.
Methods Summary
difference_prob
(first, second)Returns a numeric difference between the utility of the two given outcomes
is_better
(first, second)Compares two offers using the
ufun
returning whether the first is strictly better than the secondis_equivalent
(first, second)Compares two offers using the
ufun
returning whether the first is strictly equivelent than the secondis_not_better
(first, second)Compares two offers using the
ufun
returning whether the first is worse or equivalent than the secondis_not_worse
(first, second)Compares two offers using the
ufun
returning whether the first is better than the secondDoes the utiltiy of an outcome depend on the
NegotiatorMechanismInterface
?Does the utiltiy of an outcome depend on the negotiation state?
Is the ufun stationary (i.e. utility value of an outcome is a constant)?.
Does the utiltiy of an outcome depend on factors outside the negotiation?
is_worse
(first, second)Compares two offers using the
ufun
returning whether the first is strictly worse than the secondAttributes Documentation
- base_type
Returns the utility_function base type ignoring discounting and similar wrappings.
- type
Returns the preferences type.
Methods Documentation
- abstract difference_prob(first, second)[source]
Returns a numeric difference between the utility of the two given outcomes
- Return type:
Distribution
- abstract is_better(first, second)
Compares two offers using the
ufun
returning whether the first is strictly better than the second- Parameters:
- Return type:
Remarks:
Should raise
ValueError
if the comparison cannot be done
- abstract is_equivalent(first, second)
Compares two offers using the
ufun
returning whether the first is strictly equivelent than the second- Parameters:
- Return type:
Remarks:
Should raise
ValueError
if the comparison cannot be done
- abstract is_not_better(first, second)
Compares two offers using the
ufun
returning whether the first is worse or equivalent than the second- Parameters:
- Return type:
Remarks:
Should raise
ValueError
if the comparison cannot be done
- abstract is_not_worse(first, second)
Compares two offers using the
ufun
returning whether the first is better than the second- Parameters:
- Return type:
Remarks:
Should raise
ValueError
if the comparison cannot be done
- abstract is_session_dependent()
Does the utiltiy of an outcome depend on the
NegotiatorMechanismInterface
?- Return type:
- abstract is_state_dependent()
Does the utiltiy of an outcome depend on the negotiation state?
- Return type:
- abstract is_stationary()
Is the ufun stationary (i.e. utility value of an outcome is a constant)?
- Return type:
- abstract is_volatile()
Does the utiltiy of an outcome depend on factors outside the negotiation?
- Return type:
- Remarks:
A volatile preferences is one that can change even for the same mechanism state due to outside influence
- abstract is_worse(first, second)
Compares two offers using the
ufun
returning whether the first is strictly worse than the second- Parameters:
- Return type:
Remarks:
Should raise
ValueError
if the comparison cannot be done