[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-06-27 22:26:17 +00:00
parent f40dad1c8b
commit c5fbf73153

View File

@ -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")