SingleIssueFun

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

Bases: negmas.preferences.protocols.Fun, Protocol

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

Attributes Summary

dim

rtype

int

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

int

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)[source]
Return type

tuple[float, float]

scale_by(scale)[source]
Return type

Fun

shift_by(offset)[source]
Return type

Fun

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

str