Learn R Programming

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

ecr (version 2.1.0)

Evolutionary Computation in R

Description

Framework for building evolutionary algorithms for both single- and multi-objective continuous or discrete optimization problems. A set of predefined evolutionary building blocks and operators is included. Moreover, the user can easily set up custom objective functions, operators, building blocks and representations sticking to few conventions. The package allows both a black-box approach for standard tasks (plug-and-play style) and a much more flexible white-box approach where the evolutionary cycle is written by hand.

Copy Link

Version

Install

install.packages('ecr')

Monthly Downloads

299

Version

2.1.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jakob Bossek

Last Published

July 10th, 2017

Functions in ecr (2.1.0)

asemoa

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

Average Hausdorff Distance computation.
doNondominatedSorting

Fast non-dominated sorting algorithm.
dominated

Check for pareto dominance.
computeGenerationalDistance

Computes Generational Distance.
computeInvertedGenerationalDistance

Computes Inverted Generational Distance.
computeCrowdingDistance

Compute the crowding distance of a set of points.
computeDistanceFromPointToSetOfPoints

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

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

Dominance relation check.
ecr_result

Result object.
emoaIndEps

Computation of the unary epsilon-indicator.
getSupportedRepresentations

Get supported representations.
generators

Population generators
getFront

Extract fitness values from Pareto archive.
getSize

Get size of Pareto-archive.
getStatistics

Access the logged statistics.
ecr

Interface to ecr similar to the optim function.
ecr_parallelization

Parallelization in ecr
isEcrOperator

Check if given function is an ecr operator.
makeECRMonitor

Factory method for monitor objects.
evaluateFitness

Computes the fitness value(s) for each individual of a given set.
generateOffspring

Helper functions for offspring generation
initPopulation

Helper function to build initial population.
is.supported

Check if ecr operator supports given representation.
mutBitflip

Bitplip mutator.
mutGauss

Gaussian mutator.
mutSwap

Swap mutator.
makeOptimizationTask

Creates an optimization task.
makeRecombinator

Construct a recombination operator.
plotFront

Plot Pareto-front.
plotStatistics

Generate line plot of logged statistics.
initECRControl

Control object generator.
makeSelector

Construct a selection operator.
makeTerminator

Generate stopping condition.
makeMutator

Construct a mutation operator.
makeOperator

Construct evolutionary operator.
recCrossover

One-point crossover recombinator.
recIntermediate

Indermediate recombinator.
normalizeFront

Normalize points of a set.
nsga2

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

Ordered-Crossover (OX) recombinator.
recPMX

Partially-Mapped-Crossover (PMX) recombinator.
getPopulations

Access to logged populations.
initLogger

Initialize a log object.
initParetoArchive

Initialize Pareto Archive.
setup

Set up parameters for evolutionary operator.
setupECRDefaultMonitor

Default monitor.
updateParetoArchive

Update Pareto Archive.
which.dominated

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

Extract individuals from Pareto archive.
mutUniform

Uniform mutator.
selGreedy

Simple selector.
selNondom

Non-dominated sorting selector.
smsemoa

Implementation of the SMS-EMOA by Emmerich et al.
stoppingConditions

Stopping conditions
mutInsertion

Insertion mutator.
mutInversion

Inversion mutator.
mutPolynomial

Polynomial mutation.
mutScramble

Scramble mutator.
recSBX

Simulated Binary Crossover (SBX) recombinator.
recUnifCrossover

Uniform crossover recombinator.
toGG

Transform to long format.
updateLogger

Update the log.
wrapChildren

Wrap the individuals constructed by a recombination operator.
approximateNadirPoint

Reference point approximations.
registerECROperator

Register operators to control object.
selRoulette

Roulette-wheel / fitness-proportional selector.
selSimple

Simple (naive) selector.
replace

(mu + lambda) selection
selDomHV

Dominated Hypervolume selector.
selTournament

k-Tournament selector.
select

Select individuals.