mccga.rs
Machine-coded compact genetic algorithm in Rust
In-short
The package implements the Machine-coded compact genetic algorithm defined in
Satman, M. H. & Akadal, E. (2020). Machine Coded Compact Genetic Algorithms for Real Parameter Optimization Problems . Alphanumeric Journal , 8 (1) , 43-58 . DOI: 10.17093/alphanumeric.576919 Link
Example
Suppose that the objective function is to minimize
so the package allows to type
let mins: = vec!;
let maxs: = vec!;
let result = mccga;
to minimize the objective function where result is a 2-element vector. One can test the result using
assert!;
assert!;