mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
fix: doctest issues when running code
This commit is contained in:
parent
db08b13d97
commit
be44d46bd8
@ -28,8 +28,7 @@ class Tableau:
|
|||||||
>>> Tableau(np.array([[-1,-1,0,0,1],[1,3,1,0,4],[3,1,0,1,4.]]), -2, 2)
|
>>> Tableau(np.array([[-1,-1,0,0,1],[1,3,1,0,4],[3,1,0,1,4.]]), -2, 2)
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
...
|
...
|
||||||
ValueError: Number of decision and artificial variables must be greater or equal to
|
ValueError: number of (artificial) variables must be a natural number
|
||||||
2 or 0, respectively
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Maximum number of iterations to prevent cycling
|
# Maximum number of iterations to prevent cycling
|
||||||
@ -44,8 +43,7 @@ class Tableau:
|
|||||||
|
|
||||||
if n_vars < 2 or n_artificial_vars < 0:
|
if n_vars < 2 or n_artificial_vars < 0:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Number of decision and artificial variables must be greater or equal \
|
"number of (artificial) variables must be a natural number"
|
||||||
to 2 or 0, respectively"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
self.tableau = tableau
|
self.tableau = tableau
|
||||||
|
Loading…
x
Reference in New Issue
Block a user