SingleIssueFun

class negmas.preferences.SingleIssueFun(*args, **kwargs)[source]

Bases: Fun, Protocol

A value function mapping values from a single issue to a real number

Attributes Summary

dim

Methods Summary

__call__(x)

Call self as a function.

max(input)

rtype:

float

min(input)

rtype:

float

minmax(input)

rtype:

tuple[float, float]

scale_by(scale)

rtype:

Fun

shift_by(offset)

rtype:

Fun

xml(indx, issue[, bias])

rtype:

str

Attributes Documentation

dim

Methods Documentation

__call__(x)

Call self as a function.

Return type:

float

max(input)[source]
Return type:

float

min(input)[source]
Return type:

float

minmax(input)
Return type:

tuple[float, float]

abstract scale_by(scale)
Return type:

Fun

abstract shift_by(offset)
Return type:

Fun

xml(indx, issue, bias=0.0)[source]
Return type:

str