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

⌛ Increase hard bound #665

Merged
merged 10 commits into from Feb 17, 2024
Merged

Conversation

eduherminio
Copy link
Member

@eduherminio eduherminio commented Feb 17, 2024

Before #664 the concepts of hard and soft bounds for time management existed in Lynx, buuuut hard bound was being calculated taking account time/movesToGo, resulting in a bound that was often being hit rather than a safety precaution, which is what most engines do.

This PR changes that, setting hard bound to 25% of the total available time, which is 7.5 times what I had before

8+0.08
Score of Lynx-time-management-soft-hard-bounds-2-adjust-2639-win-x64 vs Lynx 2634 - main: 358 - 222 - 307  [0.577] 887
...      Lynx-time-management-soft-hard-bounds-2-adjust-2639-win-x64 playing White: 233 - 61 - 150  [0.694] 444
...      Lynx-time-management-soft-hard-bounds-2-adjust-2639-win-x64 playing Black: 125 - 161 - 157  [0.459] 443
...      White vs Black: 394 - 186 - 307  [0.617] 887
Elo difference: 53.7 +/- 18.6, LOS: 100.0 %, DrawRatio: 34.6 %
SPRT: llr 2.9 (100.2%), lbound -2.25, ubound 2.89 - H1 was accepted

40+0.4
Score of Lynx-time-management-soft-hard-bounds-2-adjust-2639-win-x64 vs Lynx 2634 - main: 438 - 313 - 546  [0.548] 1297
...      Lynx-time-management-soft-hard-bounds-2-adjust-2639-win-x64 playing White: 318 - 85 - 245  [0.680] 648
...      Lynx-time-management-soft-hard-bounds-2-adjust-2639-win-x64 playing Black: 120 - 228 - 301  [0.417] 649
...      White vs Black: 546 - 205 - 546  [0.631] 1297
Elo difference: 33.6 +/- 14.4, LOS: 100.0 %, DrawRatio: 42.1 %
SPRT: llr 2.9 (100.3%), lbound -2.25, ubound 2.89 - H1 was accepted

Base automatically changed from time-management/soft-hard-bounds-2 to main February 17, 2024 19:45
eduherminio added a commit that referenced this pull request Feb 17, 2024
…664)

Reimplementation of #447.
This is an attempt to standarize time management using the hard/soft bound technique, where different values are used to stop the search after each IDDFS iteration (soft bound) and to stop the search at any moment (hard bound).

We were already using this technique via applying `DecisionTimePercentageToStopSearching` coefficient to the hard bound to get the soft one.
Last tm revision was done in #288


I run this non-ref tests, but I'm trully merging this together with #665, I just want to make clear the separation between the implementation and the value tweaking (fixing even, lol)
@eduherminio eduherminio marked this pull request as ready for review February 17, 2024 20:03
@eduherminio eduherminio merged commit fa26231 into main Feb 17, 2024
28 checks passed
@eduherminio eduherminio deleted the time-management/soft-hard-bounds-2-adjust branch February 17, 2024 20:03
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

Successfully merging this pull request may close these issues.

None yet

1 participant