TerminationFactory {xegaPopulation}R Documentation

Configure the termination condition(s) a genetic algorithm.

Description

TerminationFactory() implements the selection of a termination method.

Current support:

  1. "NoTermination" returns terminatedFalse. (Default)

  2. "AbsoluteError" returns terminateAbsoluteError(). For benchmark functions with known global optima. Termination condition is fulfilled if the current best solution is in the interval from (globalOptimum-eps) to (globalOptimum+eps).

  3. "RelativeError" returns terminateRelativeError(). For benchmark functions with known global optima. Termination condition is fulfilled if the current best solution is in the interval from (globalOptimum-(globalOptimum*eps)) to (globalOptimum+(globalOptimum*eps)). Does not specify an interval if globalOptimum is zero.

  4. "RelativeErrorZero" returns terminateRelativeErrorZero(). For benchmark functions with known global optima. Termination condition is fulfilled if the current best solution is in the interval from (globalOptimum-(globalOptimum*eps)) to (globalOptimum+(globalOptimum*eps)). If the globalOptimum is zero, the interval is from -terminationEps to terminationEps.

  5. "PAC" returns terminatePAC(). Terminates, as soon as the fitness is is better than a confidence interval depending on the mean and stats::qnorm(PACdelta, lower.tail=FALSE) times the standard deviation of the fitness of the initial population.

  6. "GEQ" returns terminateGEQ(). Terminates as soon as the phenotype value of the solution is greater equal than lF$TerminationThreshol().

  7. "LEQ" returns terminateLEQ(). Terminates as soon as the phenotype value of the solution is less equal than lF$TerminationThreshol().

Usage

TerminationFactory(method = "NoTermination")

Arguments

method

A string specifying the termination condition.

Value

A boolean function implementing the termination condition.

See Also

Other Configuration: AcceptFactory(), ApplyFactory(), CoolingFactory(), CrossRateFactory(), MutationRateFactory(), checkTerminationFactory(), xegaConfiguration(), xegaEvalPopulationFactory()


[Package xegaPopulation version 1.0.0.7 Index]