Skip to content

Commit

Permalink
accomodate trivial hyperplanes
Browse files Browse the repository at this point in the history
  • Loading branch information
natemacfadden authored Mar 6, 2024
1 parent e987d5f commit 61cf9d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cytools/cone.py
Original file line number Diff line number Diff line change
Expand Up @@ -1647,6 +1647,10 @@ def feasibility(hyperplanes: "ArrayLike",
else:
hp_iter = lambda hp:hp.items()

# accomodate trivial hyperplanes
if len(hyperplanes)==0:
return np.ones(ambient_dim)

if backend in ("glop", "scip"):
solver = pywraplp.Solver.CreateSolver(backend.upper())

Expand Down

0 comments on commit 61cf9d5

Please sign in to comment.