Skip to content

Commit 9304f14

Browse files
Apply diverse discover reward multiplier
1 parent a670b89 commit 9304f14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rosomaxa/src/hyper/dynamic_selective.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ where
342342
.next()
343343
.map(|best_known| {
344344
const BEST_DISCOVERY_REWARD_MULTIPLIER: f64 = 2.;
345+
const DIVERSE_DISCOVERY_REWARD_MULTIPLIER: f64 = 0.1;
345346

346347
let objective = heuristic_ctx.objective();
347348

@@ -353,7 +354,7 @@ where
353354
(Ordering::Greater, Ordering::Greater) => {
354355
(distance_initial + 1.) + (distance_best + 1.) * BEST_DISCOVERY_REWARD_MULTIPLIER
355356
}
356-
(Ordering::Greater, Ordering::Less) => distance_initial + 1.,
357+
(Ordering::Greater, Ordering::Less) => (distance_initial + 1.) * DIVERSE_DISCOVERY_REWARD_MULTIPLIER,
357358
_ => 0.,
358359
}
359360
})

0 commit comments

Comments
 (0)