GurobiClient¶
- class GurobiClient¶
Methods
Attributes
acceptable_degrees property
library_path property
parameters property
version property
write_request_data property
write_response_data property
- class Result¶
- class OptimizationStatusCode¶
- __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.
- Cutoff = OptimizationStatusCode.Cutoff¶
- InfOrUnbd = OptimizationStatusCode.InfOrUnbd¶
- Infeasible = OptimizationStatusCode.Infeasible¶
- Inprogress = OptimizationStatusCode.Inprogress¶
- Interrupted = OptimizationStatusCode.Interrupted¶
- IterationLimit = OptimizationStatusCode.IterationLimit¶
- Loaded = OptimizationStatusCode.Loaded¶
- MemLimit = OptimizationStatusCode.MemLimit¶
- NodeLimit = OptimizationStatusCode.NodeLimit¶
- Numeric = OptimizationStatusCode.Numeric¶
- Optimal = OptimizationStatusCode.Optimal¶
- SolutionLimit = OptimizationStatusCode.SolutionLimit¶
- Suboptimal = OptimizationStatusCode.Suboptimal¶
- TimeLimit = OptimizationStatusCode.TimeLimit¶
- Unbounded = OptimizationStatusCode.Unbounded¶
- Unknown = OptimizationStatusCode.Unknown¶
- UserObjLimit = OptimizationStatusCode.UserObjLimit¶
- WorkLimit = OptimizationStatusCode.WorkLimit¶
- __name__ = 'OptimizationStatusCode'¶
- __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
- Overloading:
1. solve(self, objective: Union[amplify.Poly, amplify.Matrix], dry_run: Literal[False] = False) -> amplify.GurobiClient.Result
- Args:
objective (amplify.Poly | amplify.Matrix):
dry_run (Literal[False]): Defaults to
False
.
- Returns:
amplify.GurobiClient.Result:
2. solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[False] = False) -> amplify.GurobiClient.Result
- Args:
constraint (amplify.Constraint | amplify.ConstraintList):
dry_run (Literal[False]): Defaults to
False
.
- Returns:
amplify.GurobiClient.Result:
3. solve(self, objective: Union[amplify.Poly, amplify.Matrix], constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[False] = False) -> amplify.GurobiClient.Result
- Args:
objective (amplify.Poly | amplify.Matrix):
constraint (amplify.Constraint | amplify.ConstraintList):
dry_run (Literal[False]): Defaults to
False
.
- Returns:
amplify.GurobiClient.Result:
4. solve(self, objective: Union[amplify.Poly, amplify.Matrix], dry_run: Literal[True]) -> None
- Args:
objective (amplify.Poly | amplify.Matrix):
dry_run (Literal[True]):
5. solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[True]) -> None
- Args:
constraint (amplify.Constraint | amplify.ConstraintList):
dry_run (Literal[True]):
6. solve(self, objective: Union[amplify.Poly, amplify.Matrix], constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[True]) -> None
- Args:
objective (amplify.Poly | amplify.Matrix):
constraint (amplify.Constraint | amplify.ConstraintList):
dry_run (Literal[True]):
- tune(self, objective: Poly | Matrix) None ¶
- tune(self, constraint: Constraint | ConstraintList) None
- tune(
- self,
- objective: Poly | Matrix,
- constraint: Constraint | ConstraintList,
tune
- Overloading:
1. tune(self, objective: Union[amplify.Poly, amplify.Matrix]) -> None
- Args:
objective (amplify.Poly | amplify.Matrix):
2. tune(self, constraint: Union[amplify.Constraint, amplify.ConstraintList]) -> None
- Args:
constraint (amplify.Constraint | amplify.ConstraintList):
3. tune(self, objective: Union[amplify.Poly, amplify.Matrix], constraint: Union[amplify.Constraint, amplify.ConstraintList]) -> None
- Args:
objective (amplify.Poly | amplify.Matrix):
constraint (amplify.Constraint | amplify.ConstraintList):
- property acceptable_degrees¶
acceptable_degrees property
- 戻り値の型:
- property parameters¶
parameters property
- 戻り値の型: