Skip to content

Commit

Permalink
Swap out np.inf for python inf
Browse files Browse the repository at this point in the history
  • Loading branch information
Opt-Mucca committed Sep 6, 2024
1 parent cc3db2d commit a9b494b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_branch_mostinfeas.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from pyscipopt import Branchrule, SCIP_RESULT
from helpers.utils import random_mip_1

import numpy as np


class MostInfBranchRule(Branchrule):

Expand All @@ -18,7 +16,7 @@ def branchexeclp(self, allowaddcons):

# Find the variable that is most fractional
best_cand_idx = 0
best_dist = np.inf
best_dist = float('inf')
for i in range(npriocands):
if abs(branch_cand_fracs[i] - 0.5) <= best_dist:
best_dist = abs(branch_cand_fracs[i] - 0.5)
Expand Down

0 comments on commit a9b494b

Please sign in to comment.