xegaGpGene: Genetic Operations for Grammar-Based Genetic Programming

An implementation of the representation-dependent gene level operations of grammar-based genetic programming with genes which are derivation trees of a context-free grammar: Initialization of a gene with a complete random derivation tree, decoding of a derivation tree. Crossover is implemented by exchanging subtrees. Depth-bounds for the minimal and the maximal depth of the roots of the subtrees exchanged by crossover can be set. Mutation is implemented by replacing a subtree by a random subtree. The depth of the random subtree and the insertion node are configurable. For details, see Geyer-Schulz (1997, ISBN:978-3-7908-0830-X).

Getting started

Package details

AuthorAndreas Geyer-Schulz [aut, cre] (<https://orcid.org/0009-0000-5237-3579>)
MaintainerAndreas Geyer-Schulz <Andreas.Geyer-Schulz@kit.edu>
LicenseMIT + file LICENSE
Version1.0.0.2
URL https://github.com/ageyerschulz/xegaGpGene
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("xegaGpGene")

Try the xegaGpGene package in your browser

Any scripts or data that you put into this service are public.

xegaGpGene documentation built on June 10, 2025, 9:14 a.m.