Skip to content

Commit

Permalink
removed error on inside facet (numerical issues), now warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanley Bak committed Oct 16, 2019
1 parent cb4f2d2 commit d6d353e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hylaa/kamenev.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ def _v_h_rep_given_init_simplex(init_simplex, supp_point_func, epsilon=1e-7):
error = np.dot(supporting_pt, normal) - rhs
max_error = max(max_error, error)

assert error >= -1e-7, "supporting point was inside facet?"
if error <= -1e-4:
print(f"Kamenev Plot warning: supporting point was inside facet? error was {error}")

if error >= epsilon:
# add the point
Expand Down

0 comments on commit d6d353e

Please sign in to comment.