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
d8ebfc8bf3
commit
f12212ecf1
@ -38,11 +38,12 @@ class Tableau:
|
||||
|
||||
# Max iteration number to prevent cycling
|
||||
maxiter = 100
|
||||
|
||||
def __init__(
|
||||
self, tableau: np.ndarray, n_vars: int, n_artificial_vars: int
|
||||
) -> None:
|
||||
if tableau.dtype != 'float64':
|
||||
raise TypeError('Tableau must have type float64')
|
||||
if tableau.dtype != "float64":
|
||||
raise TypeError("Tableau must have type float64")
|
||||
|
||||
# Check if RHS is negative
|
||||
if not (tableau[:, -1] >= 0).all():
|
||||
|
Loading…
x
Reference in New Issue
Block a user