Constraint

class negmas.elicitation.Constraint(full_range: Union[Sequence[Tuple[float, float]], Tuple[float, float]] = (0.0, 1.0), outcomes: Optional[List[Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]]]] = None)[source]

Bases: abc.ABC

Some constraint on allowable utility values for given outcomes.

Methods Summary

is_satisfied(ufun[, outcomes])

Whether or not the constraint is satisfied.

marginal(outcome)

marginals([outcomes])

Methods Documentation

abstract is_satisfied(ufun: negmas.utilities.UtilityFunction, outcomes: Optional[Iterable[Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]]]] = None)bool[source]

Whether or not the constraint is satisfied.

abstract marginal(outcome: Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]])negmas.helpers.Distribution[source]
abstract marginals(outcomes: Optional[Iterable[Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]]]] = None)List[negmas.helpers.Distribution][source]