mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 02:18: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)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ValueError: Number of decision and artificial variables must be greater or equal to
|
||||
2 or 0, respectively
|
||||
ValueError: number of (artificial) variables must be a natural number
|
||||
"""
|
||||
|
||||
# Maximum number of iterations to prevent cycling
|
||||
@ -44,8 +43,7 @@ class Tableau:
|
||||
|
||||
if n_vars < 2 or n_artificial_vars < 0:
|
||||
raise ValueError(
|
||||
"Number of decision and artificial variables must be greater or equal \
|
||||
to 2 or 0, respectively"
|
||||
"number of (artificial) variables must be a natural number"
|
||||
)
|
||||
|
||||
self.tableau = tableau
|
||||
|
Loading…
x
Reference in New Issue
Block a user