Skip to content

Commit

Permalink
fix tolerance for adding turning point
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Schmelzer committed Aug 6, 2023
1 parent 3aa9f9b commit c2ccbf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cvx/cla/aux.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class CLAUX:
def num_points(self):
return len(self.turning_points)

def append(self, tp: TurningPoint, tol=1e-10):
tol = 1e-10
def append(self, tp: TurningPoint, tol=1e-5):
assert np.all(
tp.weights >= self.lower_bounds - tol), f"{self.lower_bounds} - {tp.weights}"
assert np.all(
Expand Down

0 comments on commit c2ccbf4

Please sign in to comment.