hp.cc modifications - #1011
Conversation
|
This new commit identifies whether the result is an equilibrium or not, considering how far we are from the target The previously mentioned game ( Last meeting we also discussed a better way to stop exactly when - - This happens because I allow it in the termination function when stating that The only way that I have found to do so, is by changing Using this, |
|
The orientation fix is a good catch and actually this is normal in these systems - the orientation of the curve is in some sense arbitrary so we need something which figures out which is the direction that goes the way we want to go (into positive The refinement of the termination condition is a separate item and also touches on some of the problems you're seeing in the test cases - I'll comment on those there. |
tturocy
left a comment
There was a problem hiding this comment.
See comment in main thread - let's make a PR focusing just on the orientation issue and figure the best way to handle it.
Termination is a separate question and we should deal with that in a separate line.
Description of the changes in this PR
This PR has two goals:
-Adjust the orientation that takes the tracer when hp algorithm begins.
-Refactor the termination_condition so that it does not rely on magical numbers, and it adapts to each game.
The first part is already complete. As mentioned in PR #1007, 8 games from
contrib/gamesdid not reach an equilibirum because in the first steps of the tracing procedure, the orientation was wrong and it started with negative values oft, leading to a wrong result, or an infinite loop.Now, if that happens, (
t <wrong_orientation_tol = -1.0e-4), the tracer starts again from the beginning with the orientation inverted. This way it is ensured thattincreases this second try.After doing this, only
wink3.nfgfails to converge to an equilibrium, with a regret of 4.15e-05.This problem can be easily solved by adjusting
c_maxDist =0.2, inpath.cc.Callback function has been simplified to make it more legible.
How to review this PR
Test some of the games from catalog and contrib and check whether they reach an equilibrium or not.