mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
Merge branch 'master' of https://github.com/imengus/Python
This commit is contained in:
commit
59ac89c1d1
@ -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