RangeConstraint

class negmas.elicitation.RangeConstraint(rng: tuple = (None, None), full_range: Sequence[tuple[float, float]] | tuple[float, float] = (0.0, 1.0), outcomes: list[tuple] = None, eps=1e-05)[source]

Bases: Constraint

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

Methods Summary

is_satisfied(preferences[, outcomes])

Whether or not the constraint is satisfied.

marginal(outcome)

marginals([outcomes])

Methods Documentation

is_satisfied(preferences: Preferences, outcomes: Iterable[tuple] | None = None) bool[source]

Whether or not the constraint is satisfied.

marginal(outcome: tuple) ScipyDistribution[source]
marginals(outcomes: Iterable[tuple] = None) list[ScipyDistribution][source]