Skip to content

Commit

Permalink
Symmetrize optimism
Browse files Browse the repository at this point in the history
Removes some additional parameters, making the term more logical at the same
time.

Passed STC:
https://tests.stockfishchess.org/tests/view/6550e896136acbc5735328ed
LLR: 2.93 (-2.94,2.94) <-1.75,0.25>
Total: 271104 W: 68441 L: 68480 D: 134183
Ptnml(0-2): 827, 32590, 68816, 32433, 886

Passed LTC:
https://tests.stockfishchess.org/tests/view/65523858136acbc5735344f7
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 198954 W: 49250 L: 49211 D: 100493
Ptnml(0-2): 93, 22565, 54117, 22614, 88

closes #4874

Bench: 1334248
  • Loading branch information
vondele authored and Disservin committed Nov 15, 2023
1 parent 863a1f2 commit f9d8717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Expand Up @@ -372,8 +372,8 @@ void Thread::search() {
beta = std::min(avg + delta, VALUE_INFINITE);

// Adjust optimism based on root move's averageScore (~4 Elo)
optimism[us] = 103 * avg / (std::abs(avg) + 119);
optimism[~us] = -116 * avg / (std::abs(avg) + 123);
optimism[us] = 110 * avg / (std::abs(avg) + 121);
optimism[~us] = -optimism[us];

// Start with a small aspiration window and, in the case of a fail
// high/low, re-search with a bigger window until we don't fail
Expand Down

0 comments on commit f9d8717

Please sign in to comment.