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 = Cutoff#
- InfOrUnbd = InfOrUnbd#
- Infeasible = Infeasible#
- Inprogress = Inprogress#
- Interrupted = Interrupted#
- IterationLimit = IterationLimit#
- Loaded = Loaded#
- MemLimit = MemLimit#
- NodeLimit = NodeLimit#
- Numeric = Numeric#
- Optimal = Optimal#
- SolutionLimit = SolutionLimit#
- Suboptimal = Suboptimal#
- TimeLimit = TimeLimit#
- Unbounded = Unbounded#
- Unknown = Unknown#
- UserObjLimit = UserObjLimit#
- WorkLimit = WorkLimit#
- __name__ = 'OptimizationStatusCode'#
- __init__(*args, **kwargs)#
- property status#
status property
- Return type:
- __init__(self) None #
- __init__(self, library_path: str) None
__init__
- Parameters:
library_path (str) –
- 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
- Return type:
- property parameters#
parameters property
- Return type: