A Genetic Algorithm for Fixed-Size Subset Selection
Overview
Provides a function that uses a genetic algorithm to search for a subset of size k from the integers 1:n, such that a user-supplied objective function is minimized at that subset. The selection step is done by tournament selection based on ranks, and elitism may be used to retain a portion of the best solutions from one generation to the next. Population objective function values may optionally be evaluated in parallel.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 6includes a package overview page
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 87%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Installing kofnGA adds 5 packages (3 with compiled code, 16 MB of source tarballs). Heaviest: BH 14 MB, Rcpp 1.8 MB, uuid 79 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 1.3Latest
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 1.22015-11-24 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 1.1
- 1.02014-09-24
Show 1 earlier eventHide 1 earlier event
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2014-09-24
- Total releases
- 4 / 12 yrs
- License
- GPL-2 OSI
- Download size
- 12 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("kofnGA")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v068.c01.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.