mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
f40dad1c8b
commit
c5fbf73153
@ -26,8 +26,7 @@ class Tableau:
|
||||
ValueError: RHS must be > 0
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self, tableau: np.ndarray, n_vars: int, n_art_vars: int) -> None:
|
||||
def __init__(self, tableau: np.ndarray, n_vars: int, n_art_vars: int) -> None:
|
||||
# Check if RHS is negative
|
||||
if np.any(tableau[:, -1], where=tableau[:, -1] < 0):
|
||||
raise ValueError("RHS must be > 0")
|
||||
|
Loading…
x
Reference in New Issue
Block a user