GurobiClientΒΆ
- class GurobiClientΒΆ
Bases:
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ΒΆ
Bases:
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
- 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
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
- Return type:
- property parametersΒΆ
parameters property
- Return type: