Genetic-class: Genetic optimization algorithm

Genetic-classR Documentation

Genetic optimization algorithm

Description

An S4 class to represent a genetic algorithm (extends Alg-class class).

Usage

Genetic(pop_size = 100, nb_max_gen = 20, prob_mutation = 0.25, sel_frac = 0.75)

Arguments

pop_size

size of the solutions populations (default to 10)

nb_max_gen

maximal number of generation to produce (default to 4)

prob_mutation

probability of mutation (default to 0.25)

sel_frac

fraction of best solutions selected for crossing (default to 0.75)

Value

a Genetic-class object

Functions

  • Genetic: Genetic algorithm class constructor

Slots

pop_size

size of the solutions populations (default to 10)

nb_max_gen

maximal number of generation to produce (default to 4)

prob_mutation

probability of mutation (default to 0.25)

sel_frac

fraction of best solutions selected for crossing (default to 0.75)

Examples

Genetic()
Genetic(pop_size = 500)

comeetie/greed documentation built on Oct. 10, 2022, 5:37 p.m.