Skip to contents

Factory function for a local stopping condition that stops a deme after given number of consecutive metaeopochs without an improvement of the best solution found in that deme.

Usage

lsc_metaepochs_without_improvement(max_metaepochs_without_improvement)

Arguments

max_metaepochs_without_improvement
  • numeric

Value

Function that can be used as a local stopping condition for hms.

Examples

local_stopping_condition <- lsc_metaepochs_without_improvement(5)