Parabola2DEarlyFactory: Factory for a 2-dimensional quadratic parabola with early...

View source: R/Parabola2D.R

Parabola2DEarlyFactoryR Documentation

Factory for a 2-dimensional quadratic parabola with early termination check.

Description

This list of functions sets up the problem environment for a 2-dimensional quadratic parabola.

Usage

Parabola2DEarlyFactory()

Details

The factory contains examples of all functions which form the interface of a problem environment to the simple genetic algorithm with binary-coded genes of package xega. This factory provides examples of a termination condition, a description function, and a solution function:

  • terminate(solution) checks for an early termination condition.

  • describe() shows a description of the function.

  • solution() returns a list with the minimum and the maximum values as well as the lists minpoints and maxpoints of the minimal and the maximal points.

Value

A problem environment represented as a list of functions:

  • $name(): The name of the problem environment.

  • $bitlength(): The vector of the number of bits of each parameter of the function.

  • $genelength(): The number of bits of the gene.

  • $lb(): The vector of lower bounds of the parameters.

  • $ub(): The vector of upper bounds of the parameters.

  • $f(parm, gene=0, lF=0)): The fitness function.

Additional elements:

  • $describe(): Print a description of the problem environment to the console.

  • $solution(): The solution structure. A named list with minimum, maximum and 2 lists of equivalent solutions: minpoints, maxpoints.

See Also

DelayedP, Parabola2DErr

Other Problem Environments: DeJongF4Factory(), DelayedPFactory(), Parabola2DErrFactory(), Parabola2DFactory(), envXOR, lau15, newEnvXOR(), newTSP()

Examples

Parabola2D<-Parabola2DEarlyFactory()
Parabola2D$f(c(2.2, 1.0))

xegaSelectGene documentation built on April 16, 2025, 5:12 p.m.