We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 030d976 commit 794b13aCopy full SHA for 794b13a
mip/model.py
@@ -617,10 +617,14 @@ def optimize(
617
618
self._status = self.solver.optimize(relax)
619
# has a solution
620
- if self._status in (
621
- mip.OptimizationStatus.OPTIMAL,
622
- mip.OptimizationStatus.FEASIBLE,
623
- ) and self.num_int > 0:
+ if (
+ self._status
+ in (
+ mip.OptimizationStatus.OPTIMAL,
624
+ mip.OptimizationStatus.FEASIBLE,
625
+ )
626
+ and self.num_int > 0
627
+ ):
628
best = self.objective_value
629
lb = self.objective_bound
630
if abs(best) <= 1e-10:
0 commit comments