QuadraticFun

class negmas.preferences.QuadraticFun(a2, a1, bias=0)[source]

Bases: BaseFun

Attributes Summary

a1

a2

bias

dim

Methods Summary

__call__(x)

Call self as a function.

from_dict(d)

max(input)

rtype:

float

min(input)

rtype:

float

minmax(input)

rtype:

tuple[float, float]

scale_by(scale)

rtype:

QuadraticFun

shift_by(offset)

rtype:

QuadraticFun

to_dict()

rtype:

dict[str, Any]

xml(indx, issue, bias)

rtype:

str

Attributes Documentation

a1: float
a2: float
bias: float
dim

Methods Documentation

__call__(x)[source]

Call self as a function.

classmethod from_dict(d)
max(input)
Return type:

float

min(input)
Return type:

float

minmax(input)[source]
Return type:

tuple[float, float]

scale_by(scale)[source]
Return type:

QuadraticFun

shift_by(offset)[source]
Return type:

QuadraticFun

to_dict()
Return type:

dict[str, Any]

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

str