parallel_solveΒΆ
- parallel_solve(
- model: Model | Poly | Matrix | Constraint | ConstraintList | Sequence[Model | Poly | Matrix | Constraint | ConstraintList],
- client: AmplifyClient | Sequence[AmplifyClient],
- *,
- dry_run: bool | Sequence[bool] = False,
- integer_encoding_method: Literal['Unary', 'Linear', 'Binary', 'Default'] | IntegerEncodingMethod | Sequence[Literal['Unary', 'Linear', 'Binary', 'Default'] | IntegerEncodingMethod] = IntegerEncodingMethod.Default,
- quadratization_method: Literal['IshikawaKZFD', 'Substitute'] | QuadratizationMethod | Sequence[Literal['IshikawaKZFD', 'Substitute'] | QuadratizationMethod] = QuadratizationMethod.IshikawaKZFD,
- substitution_multiplier: float | Sequence[float] = 1.0,
- embedding_method: Literal['Default', 'Minor', 'Clique', 'Parallel'] | EmbeddingMethod | Sequence[Literal['Default', 'Minor', 'Clique', 'Parallel'] | EmbeddingMethod] = EmbeddingMethod.Default,
- embedding_timeout: float | timedelta | Sequence[float | timedelta] = 10.0,
- chain_strength: float | Sequence[float] = 1.0,
- num_solves: int | Sequence[int] = 1,
- filter_solution: bool | Sequence[bool] = True,
- sort_solution: bool | Sequence[bool] = True,
- concurrency: int = 0,
parallel_solve
- Parameters:
model (Model | Poly | Matrix | Constraint | ConstraintList | Sequence[Model | Poly | Matrix | Constraint | ConstraintList])
client (AmplifyClient | Sequence[AmplifyClient])
integer_encoding_method (Literal['Unary', 'Linear', 'Binary', 'Default'] | amplify.IntegerEncodingMethod | collections.abc.Sequence[typing.Literal['Unary', 'Linear', 'Binary', 'Default'] | amplify.IntegerEncodingMethod]) β Defaults to
IntegerEncodingMethod.Default
.quadratization_method (Literal['IshikawaKZFD', 'Substitute'] | amplify.QuadratizationMethod | collections.abc.Sequence[typing.Literal['IshikawaKZFD', 'Substitute'] | amplify.QuadratizationMethod]) β Defaults to
QuadratizationMethod.IshikawaKZFD
.substitution_multiplier (float | Sequence[float]) β Defaults to
1.0
.embedding_method (Literal['Default', 'Minor', 'Clique', 'Parallel'] | amplify.EmbeddingMethod | collections.abc.Sequence[typing.Literal['Default', 'Minor', 'Clique', 'Parallel'] | amplify.EmbeddingMethod]) β Defaults to
EmbeddingMethod.Default
.embedding_timeout (float | timedelta | Sequence[float | timedelta]) β Defaults to
10.0
.chain_strength (float | Sequence[float]) β Defaults to
1.0
.filter_solution (bool | Sequence[bool]) β Defaults to
True
.concurrency (int) β Defaults to
0
.
- Return type: