mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 18:38:39 +00:00
fix whitespace
This commit is contained in:
parent
d8ebfc8bf3
commit
8bfb5912d3
@ -38,11 +38,12 @@ class Tableau:
|
|||||||
|
|
||||||
# Max iteration number to prevent cycling
|
# Max iteration number to prevent cycling
|
||||||
maxiter = 100
|
maxiter = 100
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, tableau: np.ndarray, n_vars: int, n_artificial_vars: int
|
self, tableau: np.ndarray, n_vars: int, n_artificial_vars: int
|
||||||
) -> None:
|
) -> None:
|
||||||
if tableau.dtype != 'float64':
|
if tableau.dtype != "float64":
|
||||||
raise TypeError('Tableau must have type float64')
|
raise TypeError("Tableau must have type float64")
|
||||||
|
|
||||||
# Check if RHS is negative
|
# Check if RHS is negative
|
||||||
if not (tableau[:, -1] >= 0).all():
|
if not (tableau[:, -1] >= 0).all():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user