Skip to content

Commit 4a11843

Browse files
author
Matthias Koeppe
committed
src/sage/game_theory/normal_form_game.py: Use LrsNash feature test
1 parent bb7ee85 commit 4a11843

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/game_theory/normal_form_game.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,17 +1674,17 @@ def obtain_nash(self, algorithm=False, maximization=True, solver=None):
16741674
if not self._is_complete():
16751675
raise ValueError("utilities have not been populated")
16761676

1677-
from sage.features.lrs import Lrs
1677+
from sage.features.lrs import LrsNash
16781678
if not algorithm:
16791679
if self.is_constant_sum():
16801680
algorithm = "lp"
1681-
elif Lrs().is_present():
1681+
elif LrsNash().is_present():
16821682
algorithm = "lrs"
16831683
else:
16841684
algorithm = "enumeration"
16851685

16861686
if algorithm == "lrs":
1687-
Lrs().require()
1687+
LrsNash().require()
16881688
return self._solve_lrs(maximization)
16891689

16901690
if algorithm == "LCP":

0 commit comments

Comments
 (0)