ComparisonConstraint

class negmas.elicitation.ComparisonConstraint(op, full_range=(0.0, 1.0), outcomes=None)[source]

Bases: negmas.elicitation.queries.MarginalNeutralConstraint

Constraints the utility of given two outcomes (must be exactly two) to satisfy the given operation (e.g. >, <)

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)
Return type

ScipyDistribution

marginals(outcomes=None)
Return type

List[ScipyDistribution]