Skip to content

Commit 47cbc36

Browse files
Apply diverse discover reward multiplier
1 parent a670b89 commit 47cbc36

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
Please note, while the major version has reached 1, breaking changes can be introduced within any minor version.
6+
I would prefer to downgrade the major version back to 0 to be more consistent with semantic versioning, but the crates
7+
are already published. So, I stick to it for now.
8+
59

610
## [Unreleased]
711

812
### Removed
913

1014
* GitHub sponsors functionality
1115
* experimental `async-evolution` feature
16+
* NSGA-II implementation and its usage
1217

1318
### Fixed
1419

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)