mosmafsTermEvals: Termination Function Creator

View source: R/terminators.R

mosmafsTermEvalsR Documentation

Termination Function Creator

Description

These create functions that can be given to slickEcr's generations argument

The stagnation terminators only count stagnation from the last time the fidelity was changed in a way that led to population re-evaluation.

Usage

mosmafsTermEvals(evals)

mosmafsTermGenerations(generations)

mosmafsTermTime(time)

mosmafsTermFidelity(fidelity)

mosmafsTermStagnationHV(stag, stag.index = "generations")

mosmafsTermStagnationObjStatistic(
  stag,
  stag.index = "generations",
  obj.stat = "mean",
  objective.index = TRUE
)

Arguments

evals

[integer(1)] limit evals.

generations

[integer(1)] limit generations. Initial population does not count.

time

[numeric(1)] limit evaluation time (which does not count holdout fitting time.

fidelity

[numeric(1)] total fidelity evaluation to limit.

stag

[integer(1)] number of generations (or other measures) without progress in hypervolume or mean objective value.

stag.index

[character(1)] one of "generations" (default), "evals", "time", "fidelity": What index to count stag against when aborting after stagnation.

obj.stat

[character(1)] what statistic of the objective to test. One of "min", "mean", "max". Default "mean".

objective.index

[integer | logical] index of objective(s) to consider. Terminates if all the objectives listed here stagnate. TRUE for all objectives. Default TRUE.

Value

function a terminator function


mosmafs documentation built on Nov. 3, 2022, 1:05 a.m.