Skip to content

Commit c03048c

Browse files
committed
problem cases shown in tests
1 parent e3b2fd0 commit c03048c

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

tests/test_nash.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def test_enumpoly_ordered_behavior(
247247
##############################################################################
248248
],
249249
)
250-
def test_enumpoly_ordered_behavior2(
250+
def test_enumpoly_ordered_behavior_PROBLEM_CASE(
251251
game: gbt.Game, mixed_behav_prof_data: list, stop_after: None | int
252252
):
253253
"""Test calls of enumpoly for mixed behavior equilibria,
@@ -896,13 +896,25 @@ def test_regrets_tmp():
896896

897897
g = games.create_3_player_with_internal_outcomes_efg()
898898
prof_data = []
899+
prof_data.append([[[1, 0], [1, 0]], [[1, 0], [0.5, 0.5]], [[1, 0], [0, 1]]])
900+
prof_data.append([[[1, 0], [1, 0]], [[1, 0], [0, 1]], [[1, 0], [0.33333, 0.6666]]])
901+
prof_data.append([[[1, 0], [1, 0]], [[1, 0], [0.5, 0.5]], [[0, 1], [1, 0]]])
902+
prof_data.append([[[1, 0], [1, 0]], [[1, 0], [0, 1]], [[0.33333, 0.6666], [1, 0]]])
903+
print("==================")
904+
for p in prof_data:
905+
prof = g.mixed_behavior_profile(rational=False, data=p)
906+
# print(prof)
907+
print(prof.max_regret())
908+
print(prof.agent_max_regret())
909+
910+
print("==================")
911+
prof_data = []
899912
prof_data.append([[[1, 0], [1, 0]], [[1, 0], ["1/2", "1/2"]], [[1, 0], [0, 1]]])
900913
prof_data.append([[[1, 0], [1, 0]], [[1, 0], [0, 1]], [[1, 0], ["1/3", "2/3"]]])
901914
prof_data.append([[[1, 0], [1, 0]], [[1, 0], ["1/2", "1/2"]], [[0, 1], [1, 0]]])
902915
prof_data.append([[[1, 0], [1, 0]], [[1, 0], [0, 1]], [["1/3", "2/3"], [1, 0]]])
903-
904916
for p in prof_data:
905917
prof = g.mixed_behavior_profile(rational=True, data=p)
906-
print(prof)
918+
# print(prof)
907919
print(prof.max_regret())
908920
print(prof.agent_max_regret())

0 commit comments

Comments
 (0)