Skip to content

Commit

Permalink
Apply diverse discover reward multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
reinterpretcat committed May 31, 2024
1 parent a670b89 commit 47cbc36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

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

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


## [Unreleased]

### Removed

* GitHub sponsors functionality
* experimental `async-evolution` feature
* NSGA-II implementation and its usage

### Fixed

Expand Down
3 changes: 2 additions & 1 deletion rosomaxa/src/hyper/dynamic_selective.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ where
.next()
.map(|best_known| {
const BEST_DISCOVERY_REWARD_MULTIPLIER: f64 = 2.;
const DIVERSE_DISCOVERY_REWARD_MULTIPLIER: f64 = 0.1;

let objective = heuristic_ctx.objective();

Expand All @@ -353,7 +354,7 @@ where
(Ordering::Greater, Ordering::Greater) => {
(distance_initial + 1.) + (distance_best + 1.) * BEST_DISCOVERY_REWARD_MULTIPLIER
}
(Ordering::Greater, Ordering::Less) => distance_initial + 1.,
(Ordering::Greater, Ordering::Less) => (distance_initial + 1.) * DIVERSE_DISCOVERY_REWARD_MULTIPLIER,
_ => 0.,
}
})
Expand Down

0 comments on commit 47cbc36

Please sign in to comment.