FujitsuDA4Client¶
- class FujitsuDA4Client¶
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¶
- __eq__(value, /)¶
Return self==value.
- __ge__(value, /)¶
Return self>=value.
- __gt__(value, /)¶
Return self>value.
- __hash__()¶
Return hash(self).
- __index__()¶
Return self converted to an integer, if self is suitable for use as an index into a list.
- __init__(*args, **kwargs)¶
- __int__()¶
int(self)
- __le__(value, /)¶
Return self<=value.
- __lt__(value, /)¶
Return self<value.
- __ne__(value, /)¶
Return self!=value.
- Canceled = FujitsuDA4ClientJobStatusEnum.Canceled¶
- Deleted = FujitsuDA4ClientJobStatusEnum.Deleted¶
- Done = FujitsuDA4ClientJobStatusEnum.Done¶
- Error = FujitsuDA4ClientJobStatusEnum.Error¶
- Running = FujitsuDA4ClientJobStatusEnum.Running¶
- Waiting = FujitsuDA4ClientJobStatusEnum.Waiting¶
- __name__ = 'JobStatus'¶
- 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
- Overloading:
1. async_solve(self, objective: amplify.Poly) -> str
- Args:
objective (amplify.Poly):
- Returns:
str:
2. async_solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList]) -> str
- Args:
constraint (amplify.Constraint | amplify.ConstraintList):
- Returns:
str:
3. async_solve(self, objective: amplify.Poly, constraint: Union[amplify.Constraint, amplify.ConstraintList]) -> str
- 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
- Overloading:
1. solve(self, objective: Union[amplify.Poly, amplify.Matrix], dry_run: Literal[False] = False, retry_after_delete: bool = True, delete_after_solve: bool = True) -> amplify.FujitsuDA4Client.Result
- Args:
objective (amplify.Poly | amplify.Matrix):
dry_run (Literal[False]): Defaults to
False
.retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- Returns:
amplify.FujitsuDA4Client.Result:
2. solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[False] = False, retry_after_delete: bool = True, delete_after_solve: bool = True) -> amplify.FujitsuDA4Client.Result
- Args:
constraint (amplify.Constraint | amplify.ConstraintList):
dry_run (Literal[False]): Defaults to
False
.retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- Returns:
amplify.FujitsuDA4Client.Result:
3. solve(self, objective: Union[amplify.Poly, amplify.Matrix], constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[False] = False, retry_after_delete: bool = True, delete_after_solve: bool = True) -> amplify.FujitsuDA4Client.Result
- Args:
objective (amplify.Poly | amplify.Matrix):
constraint (amplify.Constraint | amplify.ConstraintList):
dry_run (Literal[False]): Defaults to
False
.retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- Returns:
amplify.FujitsuDA4Client.Result:
4. solve(self, objective: Union[amplify.Poly, amplify.Matrix], dry_run: Literal[True], retry_after_delete: bool = True, delete_after_solve: bool = True) -> None
- Args:
objective (amplify.Poly | amplify.Matrix):
dry_run (Literal[True]):
retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
5. solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[True], retry_after_delete: bool = True, delete_after_solve: bool = True) -> None
- Args:
constraint (amplify.Constraint | amplify.ConstraintList):
dry_run (Literal[True]):
retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
6. solve(self, objective: Union[amplify.Poly, amplify.Matrix], constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[True], retry_after_delete: bool = True, delete_after_solve: bool = True) -> None
- Args:
objective (amplify.Poly | amplify.Matrix):
constraint (amplify.Constraint | amplify.ConstraintList):
dry_run (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
- 戻り値の型: