AmplifyAEClient

class AmplifyAEClient

ベースクラス: BaseClient

Methods

__init__

__init__

solve

solve

Attributes

acceptable_degrees

acceptable_degrees property

async_threshold_ms

async_threshold_ms property

compression

compression property

parameters

parameters property

proxy

proxy property

solver

solver property

token

token property

url

url property

version

version property

write_request_data

write_request_data property

write_response_data

write_response_data property

class Parameters
__init__(*args, **kwargs)
__repr__(self) str

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

property duplicate_solutions

duplicate_solutions property

戻り値の型:

bool | None

property num_gpus

num_gpus property

戻り値の型:

int | None

property penalty_weight_calibration

penalty_weight_calibration property

戻り値の型:

bool | None

property time_limit_ms

time_limit_ms property

戻り値の型:

timedelta | None

class Result
class Solution
class Status

ベースクラス: Enum

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls's members. 3) value is a pseudo-member (flags)

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

__repr__(self) str

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

Feasible = 1
Infeasible = 0
Optimal = 2
__nb_enum__ = <capsule object NULL>
__init__(*args, **kwargs)
__repr__(self) str

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

property objective

objective property

戻り値の型:

float

property status

status property

戻り値の型:

Status

property time_stamp_ms

time_stamp_ms property

戻り値の型:

timedelta

property values

values property

戻り値の型:

ndarray

__init__(*args, **kwargs)
__repr__(self) str

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

property execution_time_ms

execution_time_ms property

戻り値の型:

timedelta

property num_flips

num_flips property

戻り値の型:

int

property num_gpus

num_gpus property

戻り値の型:

int

property num_samplings

num_samplings property

戻り値の型:

int

property queue_time_ms

queue_time_ms property

戻り値の型:

timedelta

property solutions

solutions property

戻り値の型:

list[Solution]

property started_at

started_at property

戻り値の型:

datetime

property submitted_at

submitted_at property

戻り値の型:

datetime

property version

version property

戻り値の型:

str

property warnings

warnings property

戻り値の型:

list[str]

class Solver

ベースクラス: Enum

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls's members. 3) value is a pseudo-member (flags)

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

__repr__(self) str

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

Constraint = 0
Pubo = 1
Qubo = 2
__nb_enum__ = <capsule object NULL>
__init__(self) None
__init__(self, token: str = '', url: str = '', proxy: str | None = None) None

__init__

パラメータ:
  • token (str) -- Defaults to ''.

  • url (str) -- Defaults to ''.

  • proxy (str | None) -- Defaults to None.

__repr__(self) str

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

solve(
self,
objective: Poly | Matrix,
dry_run: Literal[False] = False,
) Result
solve(
self,
constraint: Constraint | ConstraintList,
dry_run: Literal[False] = False,
) Result
solve(
self,
objective: Poly | Matrix,
constraint: Constraint | ConstraintList,
dry_run: Literal[False] = False,
) Result
solve(self, objective: Poly | Matrix, dry_run: Literal[True]) None
solve(self, constraint: Constraint | ConstraintList, dry_run: Literal[True]) None
solve(
self,
objective: Poly | Matrix,
constraint: Constraint | ConstraintList,
dry_run: Literal[True],
) None

solve

Overload 1.

Args:
  • objective (amplify.Poly | amplify.Matrix)

  • dry_run (typing.Literal[False]): Defaults to False.

Returns:

amplify.AmplifyAEClient.Result:

Overload 2.

Args:
  • constraint (amplify.Constraint | amplify.ConstraintList)

  • dry_run (typing.Literal[False]): Defaults to False.

Returns:

amplify.AmplifyAEClient.Result:

Overload 3.

Args:
  • objective (amplify.Poly | amplify.Matrix)

  • constraint (amplify.Constraint | amplify.ConstraintList)

  • dry_run (typing.Literal[False]): Defaults to False.

Returns:

amplify.AmplifyAEClient.Result:

Overload 4.

Args:
  • objective (amplify.Poly | amplify.Matrix)

  • dry_run (typing.Literal[True])

Overload 5.

Args:
  • constraint (amplify.Constraint | amplify.ConstraintList)

  • dry_run (typing.Literal[True])

Overload 6.

Args:
  • objective (amplify.Poly | amplify.Matrix)

  • constraint (amplify.Constraint | amplify.ConstraintList)

  • dry_run (typing.Literal[True])

property acceptable_degrees

acceptable_degrees property

戻り値の型:

AcceptableDegrees

property async_threshold_ms

async_threshold_ms property

戻り値の型:

timedelta | None

property compression

compression property

戻り値の型:

bool

property parameters

parameters property

戻り値の型:

Parameters

property proxy

proxy property

戻り値の型:

str | None

property solver

solver property

戻り値の型:

Solver

property token

token property

戻り値の型:

str

property url

url property

戻り値の型:

str

property version

version property

戻り値の型:

str

property write_request_data

write_request_data property

戻り値の型:

Path | None

property write_response_data

write_response_data property

戻り値の型:

Path | None