Thanks!

abstract:

Code: Select all

```
void minimize_k() {
double e, k;
for (k = 1; k < 2; k += 0.05) {
e = calc_e(k);
printf("with k = %f, e = %f\n", k, e);
}
}
double calc_e(double k) {
addition = 0;
n = 0;
for each position {
s = quiesce(position);
Sigmoid = 1.0 / (1.0 + pow(10.0, (-k) * (double)s / 400.0));
addition += (game_result - Sigmoid) * (game_result - Sigmoid);
n++;
}
return 1.0 / n * addition;
}
```

Code: Select all

```
with k = 1.000000, e = 0.146207
with k = 1.050000, e = 0.146228
with k = 1.100000, e = 0.146249
with k = 1.150000, e = 0.146270
with k = 1.200000, e = 0.146291
with k = 1.250000, e = 0.146311
with k = 1.300000, e = 0.146332
with k = 1.350000, e = 0.146351
with k = 1.400000, e = 0.146371
with k = 1.450000, e = 0.146390
with k = 1.500000, e = 0.146409
with k = 1.550000, e = 0.146428
with k = 1.600000, e = 0.146446
with k = 1.650000, e = 0.146464
with k = 1.700000, e = 0.146482
with k = 1.750000, e = 0.146500
with k = 1.800000, e = 0.146517
with k = 1.850000, e = 0.146534
with k = 1.900000, e = 0.146551
with k = 1.950000, e = 0.146568
```