Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: gambit-gnm returns "oops" for single-profile payoff matrix. #405

Closed
wyz2368 opened this issue Nov 10, 2023 · 2 comments
Closed

BUG: gambit-gnm returns "oops" for single-profile payoff matrix. #405

wyz2368 opened this issue Nov 10, 2023 · 2 comments
Milestone

Comments

@wyz2368
Copy link

wyz2368 commented Nov 10, 2023

Remark the issue when using “gnm” for solving NE: if the payoff matrix only has one cell with payoff (0, 0) for two-player games, then “gnm” will return “oops”.

@tturocy tturocy added this to the gambit-16.2.0 milestone Nov 12, 2023
@tturocy tturocy changed the title "gnm" returns "oops" for single-profile payoff matrix. BUG: gambit-gnm returns "oops" for single-profile payoff matrix. Nov 12, 2023
@tturocy
Copy link
Member

tturocy commented Nov 12, 2023

A minimal example in Python to reproduce this:

import pygambit as gbt
g = gbt.Game.new_table([1,1])
gbt.nash.gnm_solve(g)

This appears to occur with any game where all payoffs are zero. The "oops" is coming from the routine which computes the adjoint of a matrix.

@tturocy
Copy link
Member

tturocy commented Nov 17, 2023

From 80d4d26, the "oops" has been replaced with generating an exception - this does not fix the problem fully but at least now it fails in a proper way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants