N-Wouda / ALNS

Adaptive large neighbourhood search (and more!) in Python.
https://alns.readthedocs.io/en/latest/
MIT License
442 stars 123 forks source link

Rename RandomWalk and WorseAccept? #164

Closed leonlan closed 1 year ago

leonlan commented 1 year ago

Is your feature request related to a problem? Please describe

The names of the RandomWalk and WorseAccept acceptance criteria are somewhat confusing.

Describe the solution you'd like

This change is not backward compatible and requires a major version release. We could, however, add AlwaysAccept and RandomAccept in a minor release and issue a deprecation warning for RandomWalk and WorseAccept.

Describe alternatives you have considered

Keeping the names as-is. It's not that big of a problem that's worth a backward incompatible change.

Additional context

Historical note: the names originate from Santini et al. (2018). I don't think we have to adhere to these names.

N-Wouda commented 1 year ago

Can I hijack this discussion to also propose renaming AdaptiveThreshold to something less.. vague?

leonlan commented 1 year ago

Can I hijack this discussion to also propose renaming AdaptiveThreshold to something less.. vague?

Yea agreed. It shares some characteristics with late acceptance hill climbing. Some relevant keywords may be history, lookback, average, ...

MovingAverage, RollingAverage, …


I like MovingAverageThreshold.