AcceptableDegrees¶

class AcceptableDegrees¶

Methods

__init__

__init__

Attributes

equality_constraints

equality_constraints property

inequality_constraints

inequality_constraints property

objective

objective property

__init__(
self,
objective: dict[VariableType | str, Degree | str] = {VariableType.Binary: Degree.Zero, VariableType.Ising: Degree.Zero, VariableType.Integer: Degree.Zero, VariableType.Real: Degree.Zero},
equality_constraints: dict[VariableType | str, Degree | str] = {VariableType.Binary: Degree.Zero, VariableType.Ising: Degree.Zero, VariableType.Integer: Degree.Zero, VariableType.Real: Degree.Zero},
inequality_constraints: dict[VariableType | str, Degree | str] = {VariableType.Binary: Degree.Zero, VariableType.Ising: Degree.Zero, VariableType.Integer: Degree.Zero, VariableType.Real: Degree.Zero},
) None¶

__init__

パラメータ:
  • objective (dict[Union[VariableType, str], Union[Degree, str]]) -- Defaults to {VariableType.Binary: Degree.Zero, VariableType.Ising: Degree.Zero, VariableType.Integer: Degree.Zero, VariableType.Real: Degree.Zero}.

  • equality_constraints (dict[Union[VariableType, str], Union[Degree, str]]) -- Defaults to {VariableType.Binary: Degree.Zero, VariableType.Ising: Degree.Zero, VariableType.Integer: Degree.Zero, VariableType.Real: Degree.Zero}.

  • inequality_constraints (dict[Union[VariableType, str], Union[Degree, str]]) -- Defaults to {VariableType.Binary: Degree.Zero, VariableType.Ising: Degree.Zero, VariableType.Integer: Degree.Zero, VariableType.Real: Degree.Zero}.

property equality_constraints¶

equality_constraints property

戻り値の型:

dict[VariableType, Degree]

property inequality_constraints¶

inequality_constraints property

戻り値の型:

dict[VariableType, Degree]

property objective¶

objective property

戻り値の型:

dict[VariableType, Degree]