VariableGenerator¶
- class VariableGenerator¶
Methods
Attributes
variables property
- array(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- shape: tuple[()],
- bounds: tuple[float | None, ...] = (None, None),
- name: str = '',
- array(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- shape: tuple[int] | int,
- bounds: tuple[float | None, ...] = (None, None),
- name: str = '',
- array(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- shape: tuple[int, int],
- bounds: tuple[float | None, ...] = (None, None),
- name: str = '',
- array(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- shape: tuple[int, int, int],
- bounds: tuple[float | None, ...] = (None, None),
- name: str = '',
- array(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- shape: tuple[int, int, int, int],
- bounds: tuple[float | None, ...] = (None, None),
- name: str = '',
- array(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- arg0: int,
- array(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- arg0: int,
- arg1: int,
- array(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- arg0: int,
- arg1: int,
- arg2: int,
- array(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- arg0: int,
- arg1: int,
- arg2: int,
- arg3: int,
- array(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- shape: tuple[int, int, int, int, int, typing_extensions.Unpack[tuple[int, ...]]],
- bounds: tuple[float | None, ...] = (None, None),
- name: str = '',
- array(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- *shape: int,
array
Overload 1.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
shape (tuple[()])
bounds (tuple[float | None, ...]): Defaults to
(None, None)
.name (str): Defaults to
''
.
- Returns:
amplify.PolyArray[Dim0]:
Overload 2.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
shape (tuple[int] | int)
bounds (tuple[float | None, ...]): Defaults to
(None, None)
.name (str): Defaults to
''
.
- Returns:
amplify.PolyArray[Dim1]:
Overload 3.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
shape (tuple[int, int])
bounds (tuple[float | None, ...]): Defaults to
(None, None)
.name (str): Defaults to
''
.
- Returns:
amplify.PolyArray[Dim2]:
Overload 4.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
shape (tuple[int, int, int])
bounds (tuple[float | None, ...]): Defaults to
(None, None)
.name (str): Defaults to
''
.
- Returns:
amplify.PolyArray[Dim3]:
Overload 5.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
shape (tuple[int, int, int, int])
bounds (tuple[float | None, ...]): Defaults to
(None, None)
.name (str): Defaults to
''
.
- Returns:
amplify.PolyArray[Dim4]:
Overload 6.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
arg0 (int)
- Returns:
amplify.PolyArray[Dim1]:
Overload 7.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
arg0 (int)
arg1 (int)
- Returns:
amplify.PolyArray[Dim2]:
Overload 8.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
arg0 (int)
arg1 (int)
arg2 (int)
- Returns:
amplify.PolyArray[Dim3]:
Overload 9.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
arg0 (int)
arg1 (int)
arg2 (int)
arg3 (int)
- Returns:
amplify.PolyArray[Dim4]:
Overload 10.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
shape (tuple[int, int, int, int, int, typing_extensions.Unpack[tuple[int, ...]]])
bounds (tuple[float | None, ...]): Defaults to
(None, None)
.name (str): Defaults to
''
.
- Returns:
amplify.PolyArray[Dim]:
Overload 11.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
*shape (int)
- Returns:
amplify.PolyArray[Dim]:
- matrix(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- shape: int | tuple[int, ...],
- bounds: tuple[float | None, ...] = (None, None),
- name: str = '',
- matrix(
- self,
- type: Literal['Binary', 'Ising', 'Integer', 'Real'] | VariableType,
- *shape: int,
matrix
Overload 1.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
shape (int | tuple[int, ...])
bounds (tuple[float | None, ...]): Defaults to
(None, None)
.name (str): Defaults to
''
.
- Returns:
amplify.Matrix:
Overload 2.
- Args:
type (typing.Literal['Binary', 'Ising', 'Integer', 'Real'] | amplify.VariableType)
*shape (int)
- Returns:
amplify.Matrix: