Skip to content

Commit

Permalink
removed unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffrey-hokanson committed Oct 11, 2019
1 parent 6d1de76 commit 2b8a4b7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions psdr/domains/linineq.py
Expand Up @@ -50,11 +50,7 @@ def _isinside(self, X, tol = TOL):
return self._isinside_bounds(X, tol = tol) & self._isinside_ineq(X, tol = tol) & self._isinside_eq(X, tol = tol)

def _extent(self, x, p):
# Check that direction satisfies equality constraints to a tolerance
if self.A_eq.shape[0] == 0 or np.all(np.abs(self.A_eq.dot(p) ) < self.tol):
return min(self._extent_bounds(x, p), self._extent_ineq(x, p))
else:
return 0.
return min(self._extent_bounds(x, p), self._extent_ineq(x, p))

def _normalized_domain(self, **kwargs):
names_norm = [name + ' (normalized)' for name in self.names]
Expand Down

0 comments on commit 2b8a4b7

Please sign in to comment.