Handling biffurcations in the tracer - #955
Merged
tturocy merged 4 commits intoSep 9, 2026
Merged
Conversation
tturocy
self-requested a review
June 25, 2026 12:42
Member
|
We'll likely accept this soon - I am doing a bit of work on documenting and checking the team matching pennies example from the issue first for completeness. |
AndresFerCervell
commented
Sep 9, 2026
| // If lambda was positive in the previous iteration, and we are now in the region of negative | ||
| // lambda, we are likely heading towards the wrong direction, so we reject this step and reduce | ||
| // the stepsize. | ||
| if (u.back() < min_lambda && x.back() >= 0.0) { |
Contributor
Author
There was a problem hiding this comment.
This is fixed by the orientation logic we added for HP.
Furthermore, it would only be useful for logit, contrary to the idea of making the tracer as abstract as possible.
AndresFerCervell
force-pushed
the
feature/bifurcation-fix
branch
from
September 9, 2026 13:13
a98f843 to
aab7b80
Compare
AndresFerCervell
force-pushed
the
feature/bifurcation-fix
branch
from
September 9, 2026 13:46
aab7b80 to
6db6932
Compare
tturocy
approved these changes
Sep 9, 2026
Member
|
@AndresFerCervell Thanks for circling back to this - somewhat ironic where we started was one of the last things to get merged, but that's the way it goes sometimes! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues closed by this PR
Related to Fix #492: Optimization and Stability Enhancements in Logit´s path follower #876
Description of the changes in this PR
This PR introduces several mathematical and structural improvements to the QRE (Quantal Response Equilibrium) tracing algorithm to increase convergence stability and prevent crashes, particularly in edge-case games.
It also adds an entry in
Changelog.How to review this PR
-Review the symmetry-breaking logic.
-Run gambit-logit on team_mp.txt to confirm it now reaches the Nash Equilibrium successfully without getting stuck in the bifurcation.
The mathematical explanation can be found here: https://github.com/AndresFerCervell/GSoC-2026-Gambit-Portfolio/blob/main/Gambit_Logit_Algorithm.pdf