Skip to content

Commit

Permalink
Tuned values for sqrt(totbmc).
Browse files Browse the repository at this point in the history
Bench 7729968
  • Loading branch information
xoto10 committed Apr 30, 2022
1 parent acb3f87 commit ca2e349
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ namespace {

} // namespace

auto f1 = [](int m){return Range(m/2, m*3/2);};
int A=400, B=100, C=500, D=303;
TUNE(SetRange(f1), A, B, C, D);

/// Search::init() is called at startup to initialize various lookup tables

Expand Down Expand Up @@ -469,7 +466,7 @@ void Thread::search() {
// If the bestMove is stable over several iterations, reduce time accordingly
timeReduction = lastBestMoveDepth + 10 < completedDepth ? 1.63 : 0.73;
double reduction = (1.56 + mainThread->previousTimeReduction) / (2.20 * timeReduction);
double bestMoveInstability = A/100.0 * std::pow(B/100.0 + totBestMoveChanges / Threads.size(), C/1000.0) - D/100.0;
double bestMoveInstability = 3.83 * std::pow(1.06 + totBestMoveChanges / Threads.size(), 0.496) - 2.91;
int complexity = mainThread->complexityAverage.value();
double complexPosition = std::clamp(1.0 + (complexity - 326) / 1618.1, 0.5, 1.5);

Expand Down

2 comments on commit ca2e349

@xoto10
Copy link
Owner

@xoto10 xoto10 commented on ca2e349 Apr 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@locutus2 @vondele
I started this test https://tests.stockfishchess.org/tests/view/626ce74076195fe2c2b413de against master by mistake, instead of against sg's passed simplification. Should I let it finish, or start a new test against official-stockfish#3999 ?

@vondele
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge sg's patch once we have functional change. You can let your test run at STC, and run LTC against sg's patch if it passes.

Please sign in to comment.