GurobiClient¶
- class GurobiClient¶
ベースクラス:
AmplifyClient
Methods
Attributes
acceptable_degrees property
library_path property
parameters property
version property
write_request_data property
write_response_data property
- class Result¶
- class OptimizationStatusCode¶
ベースクラス:
Enum
- Cutoff = 6¶
- InfOrUnbd = 4¶
- Infeasible = 3¶
- Inprogress = 14¶
- Interrupted = 11¶
- IterationLimit = 7¶
- Loaded = 1¶
- MemLimit = 17¶
- NodeLimit = 8¶
- Numeric = 12¶
- Optimal = 2¶
- SolutionLimit = 10¶
- Suboptimal = 13¶
- TimeLimit = 9¶
- Unbounded = 5¶
- Unknown = 0¶
- UserObjLimit = 15¶
- WorkLimit = 16¶
- __nb_enum__ = <capsule object NULL>¶
- __init__(*args, **kwargs)¶
- property status¶
status property
- 戻り値の型:
- solve(self, objective: Poly | Matrix, dry_run: Literal[False] = False) Result ¶
- solve(
- self,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[False] = False,
- solve(
- self,
- objective: Poly | Matrix,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[False] = False,
- 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],
solve
Overload 1.
- Args:
objective (amplify.Poly | amplify.Matrix)
dry_run (typing.Literal[False]): Defaults to
False
.
- Returns:
amplify.GurobiClient.Result:
Overload 2.
- Args:
constraint (amplify.Constraint | amplify.ConstraintList)
dry_run (typing.Literal[False]): Defaults to
False
.
- Returns:
amplify.GurobiClient.Result:
Overload 3.
- Args:
objective (amplify.Poly | amplify.Matrix)
constraint (amplify.Constraint | amplify.ConstraintList)
dry_run (typing.Literal[False]): Defaults to
False
.
- Returns:
amplify.GurobiClient.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])
- tune(self, objective: Poly | Matrix) None ¶
- tune(self, constraint: Constraint | ConstraintList) None
- tune(self, objective: Poly | Matrix, constraint: Constraint | ConstraintList) None
tune
Overload 1.
- Args:
objective (amplify.Poly | amplify.Matrix)
Overload 2.
- Args:
constraint (amplify.Constraint | amplify.ConstraintList)
Overload 3.
- Args:
objective (amplify.Poly | amplify.Matrix)
constraint (amplify.Constraint | amplify.ConstraintList)
- property acceptable_degrees¶
acceptable_degrees property
- 戻り値の型:
- property parameters¶
parameters property
- 戻り値の型: