RangeConstraint

class negmas.elicitation.RangeConstraint(rng: Tuple = (None, None), 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, eps=1e-05)[source]

Bases: negmas.elicitation.Constraint

Constraints the utility of each of the given outcomes to lie within the given range

Methods Summary

is_satisfied(ufun[, outcomes])

Whether or not the constraint is satisfied.

marginal(outcome)

marginals([outcomes])

Methods Documentation

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.

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]
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]