aboutsummaryrefslogtreecommitdiff
path: root/srchr/src/config.rs
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2022-10-22 20:19:27 +0200
committertslil clingman <tslil@posteo.de>2022-10-22 20:52:12 +0200
commitfa2ced8062514f1e53b227989667e298cd8795af (patch)
tree5895d7b390a1e2ad0a39d4b6802e2a32e3b94c88 /srchr/src/config.rs
parent5f3c2fbd14dd1dc3fd78df31c8150ee5ec2bdc64 (diff)
let lsb inform index block allocation between hands
Diffstat (limited to 'srchr/src/config.rs')
-rw-r--r--srchr/src/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/srchr/src/config.rs b/srchr/src/config.rs
index 60cd80c..f89aa18 100644
--- a/srchr/src/config.rs
+++ b/srchr/src/config.rs
@@ -16,13 +16,13 @@ U V W X Y Z . , / '
// Tournament parameters
pub const NUM_CONTESTANTS: usize = 256;
pub const NUM_PERSIST: usize = 8;
-pub const MAX_NUM_TRANSPOSITIONS: usize = 15;
+pub const MAX_NUM_TRANSPOSITIONS: usize = 6;
// Fitness parameters
pub const STANDARD_DSFB_WEIGHT: f32 = 1.0 / 3.0;
pub const INDEX_DSFB_WEIGHT: f32 = 1.0 / 3.0;
-pub const MIN_INDEX_USAGE_PERCENT: f32 = 0.10;
+pub const MIN_INDEX_USAGE_PERCENT: f32 = 0.12;
pub fn index_usage_fitness(index_perc: f32) -> f32 {
if index_perc < MIN_INDEX_USAGE_PERCENT {
MIN_INDEX_USAGE_PERCENT - index_perc
@@ -31,7 +31,7 @@ pub fn index_usage_fitness(index_perc: f32) -> f32 {
}
}
-pub const MAX_PINKY_USAGE_PERCENT: f32 = 0.085;
+pub const MAX_PINKY_USAGE_PERCENT: f32 = 0.092;
pub fn pinky_col_penalty(lesser_perc: f32, greater_perc: f32) -> f32 {
if greater_perc > MAX_PINKY_USAGE_PERCENT {
if lesser_perc > MAX_PINKY_USAGE_PERCENT {