Learn R Programming

⚠️There's a newer version (2.1.1) of this package.Take me there.

ecr (version 1.0.1)

Evolutionary Computing in R

Description

Provides a powerful framework for evolutionary computing in R. The user can easily construct powerful evolutionary algorithms for tackling both single- and multi-objective problems by plugging in different predefined evolutionary building blocks, e. g., operators for mutation, recombination and selection with just a few lines of code. Your problem cannot be easily solved with a standard EA which works on real-valued vectors, permutations or binary strings? No problem, 'ecr' has been developed with that in mind. Extending the framework with own operators is also possible. Additionally there are various comfort functions, like monitoring, logging and more.

Copy Link

Version

Install

install.packages('ecr')

Monthly Downloads

390

Version

1.0.1

License

BSD_2_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Jakob Bossek

Last Published

September 10th, 2016

Functions in ecr (1.0.1)

buildInitialPopulation

Helper function to build initial population.
computeAverageHausdorffDistance

Average Hausdorff Distance computation.
computeGenerationalDistance

Computes Generational Distance.
computeCrowdingDistance

Compute the crowding distance of a set of points.
dominated

Check for pareto dominance.
autoplot.ecr_single_objective_result

Plot optimization trace.
computeDistanceFromPointToSetOfPoints

Computes distance between a single point and set of points.
computeInvertedGenerationalDistance

Computes Inverted Generational Distance.
computeDominatedHypervolume

Functions for the calculation of the dominated hypervolume (contribution).
asemoa

Implementation of the NSGA-II EMOA algorithm by Deb.
dominates

Dominance relation check.
ecrpackage

ecr: Evolutionary Computing in R
setupParentSelector

Collection of functions to set specific evolutionay operators.
computeEpsilonIndicator

Computation of the unary epsilon-indicator.
evaluateFitness

Computes the fitness values for each member of a given population.
ecr_parallelization

Parallelization in ecr
doTheEvolution

Working horse of the ecr package.
doNondominatedSorting

Fast non-dominated sorting algorithm.
ecr_result

Result object.
ecr

getOperatorParameters

Get the operator's parameters.
getSupportedRepresentations

Get supported representations.
getNextGeneration

Performs survival selection.
is.supported

Check if ecr operator supports given representation.
isEcrOperator

Check if given function is an ecr operator.
getOperatorName

Get name of a operator.
generateOffspring

Creates offspring from a given mating pool of parents.
getAvailableEventNames

Receive a character vector of all valid event names.
getEvaluations

Get number of function evaluations.
getGenerations

Get number of generations.
makeGenerator

Construct a generator.
makeOperator

Construct evolutionary operator.
makeSelector

Construct a selection operator.
makeOptimizationTask

Creates an optimization task.
makeRecombinator

Construct a recombination operator.
mergePopulations

Merge populations.
makeMutator

Construct a mutation operator.
makePopulation

Generate a population.
makeTerminator

Generate stopping condition.
makeMonitor

Factory method for monitor objects.
nsga2

Implementation of the NSGA-II EMOA algorithm by Deb.
print.ecr_control

Print ecr control object.
onePlusOneGA

Simple (1 + 1) Genetic Algorithm.
approximateNadirPoint

Reference point approximations.
OptStateGetter

Optimization state getter functions.
OptState

Optimization state.
registerAction

Register an action.
rescalePoints

Rescaling of points.
selectForMating

Generate mating pool.
selectForSurvival

Generate mating pool.
setupCloseToOptimumTerminator

Stopping condition: close to optimum.
setupInsertionMutator

Generator for the Insertion mutation operator.
setupConsoleMonitor

Simple stdout monitoring function.
setupIntermediateRecombinator

Generator of the indermediate recombination operator.
setupSBXRecombinator

Generator of the Simulated Binary Crossover (SBX) recombinator.
setupRouletteWheelSelector

Generator for Roulette-Wheel-Selection (fitness-proportional selection).
updateOptState

Update optimization state.
which.dominated

Determine which points of a set are (non)dominated.
setupBinaryGenerator

Generates a generator object for the initial population.
setupBitFlipMutator

Generator of the Bitplip mutation operator.
setupInversionMutator

Generator for the Inversion mutation operator.
setupMaximumEvaluationsTerminator

Stopping condition: maximum number of function evaluations.
simpleEA

Simple (mu + lambda) EA implementation.
setupUniformMutator

Generator of the Uniform mutation operator.
setupEvolutionaryOperators

Enhance control object with evolutionary operators.
setupECRControl

Generates control object.
setupNondomSelector

Non-dominated sorting selector.
setupNullRecombinator

Generator of the “null” recombination operator.
setupPMXRecombinator

Generator of the Partially-Mapped-Crossover (PMX) recombination operator.
setupPolynomialMutator

Generator of the polynomial mutation operator.
setupCrossoverRecombinator

Generator of the one-point crossover recombination operator.
setupDominatedHypervolumeSelector

Dominated hypervolume selector.
setupScrambleMutator

Generator for the Scramble mutation operator.
setupMaximumTimeTerminator

Stopping condition: time limit.
setupMaximumIterationsTerminator

Stopping condition: maximum number of iterations.
setupSimpleSelector

Simple (naive) mating pool generator.
smsemoa

Implementation of the SMS-EMOA by Emmerich et al.
summary.ecr_multi_objective_result

Summary function for multi objective ecr result.
setupGaussMutator

Generator of the Gaussian mutation operator.
setupGreedySelector

Simple “greedy” selector.
setupOptPathLoggingMonitor

Logging monitor.
setupOptState

Generate an optimization state object.
setupOXRecombinator

Generator of the Ordered-Crossover (OX) recombination operator.
setupPermutationGenerator

Generates a generator object for the initial population.
setupTournamentSelector

Generator for k-Tournament selection.
setupUniformGenerator

Generates the uniform generator object for the initial population.
setupSwapMutator

Generator for the Swap mutation operator.
setupTerminators

Generator for some frequently used stopping conditions.
wrapChildren

Wrap the individuals constructed by a recombination operator.