RangeConstraint

class negmas.elicitation.RangeConstraint(rng=(None, None), full_range=(0.0, 1.0), outcomes=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)

rtype:

ScipyDistribution

marginals([outcomes])

rtype:

list[ScipyDistribution]

Methods Documentation

is_satisfied(preferences, outcomes=None)[source]

Whether or not the constraint is satisfied.

Return type:

bool

marginal(outcome)[source]
Return type:

ScipyDistribution

marginals(outcomes=None)[source]
Return type:

list[ScipyDistribution]