Machine Coded Genetic Algorithms for Real-Valued Optimization Problems
Overview
Machine coded genetic algorithm (MCGA) is a fast tool for real-valued optimization problems. It uses the byte representation of variables rather than real-values. It performs the classical crossover operations (uniform) on these byte representations. Mutation operator is also similar to classical mutation operator, which is to say, it changes a randomly selected byte value of a chromosome by +1 or -1 with probability 1/2. In MCGAs there is no need for encoding-decoding process and the classical operators are directly applicable on real-values. It is fast and can handle a wide range of a search space with high precision. Using a 256-unary alphabet is the main disadvantage of this algorithm but a moderate size population is convenient for many problems. Package also includes multi_mcga function for multi objective optimization problems. This function sorts the chromosomes using their ranks calculated from the non-dominated sorting algorithm.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 36 (1 internal)includes a package overview page
- Examples that run
- 94%33 run in a plain check · 2 never run
- Exported functions with examples
- 100%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 31%
Downloads
Dependencies
Installing mcga adds 7 packages (4 with compiled code, 8.6 MB of source tarballs). Heaviest: GA 4.8 MB, Rcpp 1.8 MB, RcppArmadillo 1.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 3.0.9Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 3.0.72023-11-27 · diff ↗
- 3.0.62023-08-20 · diff ↗
- 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
- 3.0.32018-05-13 · diff ↗
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- 3.0.12016-05-12 · diff ↗
- RR 3.3.0 released · 2016-05-03
Show 21 earlier eventsHide 21 earlier events
- 3.0
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 2.0.92014-03-25 · diff ↗
- 2.0.72013-04-04 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 2.0.62012-10-31 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 2.0.52012-01-09 · diff ↗
- 2.0.42012-01-06 · diff ↗
- 2.0.3
- RR 2.14.0 released · 2011-10-31
- 2.0.22011-10-17 · diff ↗
- 2.0.12011-06-25 · diff ↗
- 2.02011-06-21 · diff ↗
- RR 2.13.0 released · 2011-04-13
- 1.2.12011-01-11 · diff ↗
- 1.22011-01-11 · diff ↗
- 1.12010-12-23 · diff ↗
- 1.02010-12-13
- RR 2.12.0 released · 2010-10-15
Package metadata
- First published
- 2010-12-13
- Total releases
- 19 / 16 yrs
- License
- GPL (>= 2) OSI
- Download size
- 24 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("mcga")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.