FujitsuDA4Client¶
- class FujitsuDA4Client¶
ベースクラス:
AmplifyClient
Methods
__init__
async_solve
cancel_job
delete_job_result
get_job_result
get_jobs
health_check
solve
Attributes
acceptable_degrees property
parameters property
proxy property
set_inequalities property
set_one_way_one_hot_groups property
set_penalty_binary_polynomial property
set_two_way_one_hot_groups property
token property
type_id property
url property
version property
write_request_data property
write_response_data property
- class JobStatus¶
ベースクラス:
Enum
- Canceled = 3¶
- Deleted = 5¶
- Done = 0¶
- Error = 4¶
- Running = 1¶
- Waiting = 2¶
- __nb_enum__ = <capsule object NULL>¶
- class QuboSolutionList¶
- __init__(*args, **kwargs)¶
- property solutions¶
solutions property
- 戻り値の型:
- property timing¶
timing property
- 戻り値の型:
- __init__(self) None ¶
- __init__(self, token: str = '', type_id: str | None = None, url: str = '', proxy: str | None = None) None
__init__
- async_solve(self, objective: Poly) str ¶
- async_solve(self, constraint: Constraint | ConstraintList) str
- async_solve(self, objective: Poly, constraint: Constraint | ConstraintList) str
async_solve
Overload 1.
- Args:
objective (amplify.Poly)
- Returns:
str:
Overload 2.
- Args:
constraint (amplify.Constraint | amplify.ConstraintList)
- Returns:
str:
Overload 3.
- Args:
objective (amplify.Poly)
constraint (amplify.Constraint | amplify.ConstraintList)
- Returns:
str:
- get_jobs(self) list[JobStatusInfo] ¶
get_jobs
- 戻り値の型:
- health_check(self) CommonError | None ¶
health_check
- 戻り値の型:
CommonError | None
- solve(
- self,
- objective: Poly | Matrix,
- dry_run: Literal[False] = False,
- retry_after_delete: bool = True,
- delete_after_solve: bool = True,
- solve(
- self,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[False] = False,
- retry_after_delete: bool = True,
- delete_after_solve: bool = True,
- solve(
- self,
- objective: Poly | Matrix,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[False] = False,
- retry_after_delete: bool = True,
- delete_after_solve: bool = True,
- solve(
- self,
- objective: Poly | Matrix,
- dry_run: Literal[True],
- retry_after_delete: bool = True,
- delete_after_solve: bool = True,
- solve(
- self,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[True],
- retry_after_delete: bool = True,
- delete_after_solve: bool = True,
- solve(
- self,
- objective: Poly | Matrix,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[True],
- retry_after_delete: bool = True,
- delete_after_solve: bool = True,
solve
Overload 1.
- Args:
objective (amplify.Poly | amplify.Matrix)
dry_run (typing.Literal[False]): Defaults to
False
.retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- Returns:
amplify.FujitsuDA4Client.Result:
Overload 2.
- Args:
constraint (amplify.Constraint | amplify.ConstraintList)
dry_run (typing.Literal[False]): Defaults to
False
.retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- Returns:
amplify.FujitsuDA4Client.Result:
Overload 3.
- Args:
objective (amplify.Poly | amplify.Matrix)
constraint (amplify.Constraint | amplify.ConstraintList)
dry_run (typing.Literal[False]): Defaults to
False
.retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- Returns:
amplify.FujitsuDA4Client.Result:
Overload 4.
- Args:
objective (amplify.Poly | amplify.Matrix)
dry_run (typing.Literal[True])
retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
Overload 5.
- Args:
constraint (amplify.Constraint | amplify.ConstraintList)
dry_run (typing.Literal[True])
retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
Overload 6.
- Args:
objective (amplify.Poly | amplify.Matrix)
constraint (amplify.Constraint | amplify.ConstraintList)
dry_run (typing.Literal[True])
retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- property acceptable_degrees¶
acceptable_degrees property
- 戻り値の型:
- property parameters¶
parameters property
- 戻り値の型: