FujitsuDA3cClient¶
- class FujitsuDA3cClient¶
ベースクラス:
FujitsuDA4ClientMethods
async_solve
solve
Attributes
Returns: amplify.AcceptableDegrees:
Returns: amplify.FujitsuDA4Client.Parameters:
Returns: str | None:
Returns: bool:
Returns: bool:
Returns: bool:
Returns: bool:
Returns: str:
Returns: str | None:
Returns: str:
Returns: str:
Returns: pathlib.Path | None:
Returns: pathlib.Path | None:
- class CommonError¶
- __init__(*args, **kwargs)¶
- property code¶
Returns: int:
- property message¶
Returns: str:
- property title¶
Returns: str:
- class JobStatus¶
ベースクラス:
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)
- Canceled = 3¶
- Deleted = 5¶
- Done = 0¶
- Error = 4¶
- Running = 1¶
- Waiting = 2¶
- __nb_enum__ = <capsule object NULL>¶
- class JobStatusInfo¶
- __init__(*args, **kwargs)¶
- property job_id¶
Returns: str:
- property job_status¶
Returns: amplify.FujitsuDA4Client.JobStatus:
- property start_time¶
Returns: datetime.datetime:
- class Parameters¶
- __init__(*args, **kwargs)¶
- property gs_cutoff¶
Returns: int | None:
- property gs_level¶
Returns: int | None:
- property internal_penalty¶
Returns: int | None:
- property max_penalty_coef¶
Returns: int | None:
- property num_group¶
Returns: int | None:
- property num_output_solution¶
Returns: int | None:
- property num_run¶
Returns: int | None:
- property one_hot_cutoff¶
Returns: int | None:
- property one_hot_level¶
Returns: int | None:
- property penalty_auto_mode¶
Returns: int | None:
- property penalty_coef¶
Returns: int | None:
- property penalty_inc_rate¶
Returns: int | None:
- property target_energy¶
Returns: float | None:
- property time_limit_sec¶
Returns: datetime.timedelta | None:
- class Progress¶
- __init__(*args, **kwargs)¶
- property energy¶
Returns: float:
- property penalty_energy¶
Returns: float:
- property time¶
Returns: datetime.timedelta:
- class QuboSolution¶
- __init__(*args, **kwargs)¶
- property configuration¶
Returns: dict[str, bool]:
- property energy¶
Returns: float:
- property frequency¶
Returns: int:
- property penalty_energy¶
Returns: float:
- class QuboSolutionList¶
- __init__(*args, **kwargs)¶
- property progress¶
Returns: list[amplify.FujitsuDA4Client.Progress]:
- property result_status¶
Returns: bool:
- property solutions¶
Returns: list[amplify.FujitsuDA4Client.QuboSolution]:
- property timing¶
Returns: amplify.FujitsuDA4Client.SolverTiming:
- class Result¶
- __init__(*args, **kwargs)¶
- property message¶
Returns: str:
- property qubo_solution¶
Returns: amplify.FujitsuDA4Client.QuboSolutionList:
- property status¶
Returns: amplify.FujitsuDA4Client.JobStatus:
- class SolverTiming¶
- __init__(*args, **kwargs)¶
- property solve_time¶
Returns: datetime.timedelta:
- property total_elapsed_time¶
Returns: datetime.timedelta:
- __init__(self) None¶
- __init__(self, token: str = '', type_id: str | None = None, url: str = '', proxy: str | None = None) None
- 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]¶
- 戻り値の型:
- health_check(self) CommonError | None¶
- 戻り値の型:
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¶
Returns: amplify.AcceptableDegrees:
- property parameters¶
Returns: amplify.FujitsuDA4Client.Parameters:
- property proxy¶
Returns: str | None:
- property set_inequalities¶
Returns: bool:
- property set_one_way_one_hot_groups¶
Returns: bool:
- property set_penalty_binary_polynomial¶
Returns: bool:
- property set_two_way_one_hot_groups¶
Returns: bool:
- property token¶
Returns: str:
- property type_id¶
Returns: str | None:
- property url¶
Returns: str:
- property version¶
Returns: str:
- property write_request_data¶
Returns: pathlib.Path | None:
- property write_response_data¶
Returns: pathlib.Path | None: