An S4 class to represent an hybrid genetic/greedy algorithm (extends Alg-class class).

Hybrid(pop_size = 20, nb_max_gen = 10, prob_mutation = 0.25, Kmax = 100)

Arguments

pop_size

size of the solutions populations (default to 20)

nb_max_gen

maximal number of generation to produce (default to 10)

prob_mutation

mutation probability (default to 0.25)

Kmax

maximum number of clusters (default to 100)

Value

a Hybrid-class object

Functions

  • Hybrid: Hybrid algorithm class constructor

Slots

pop_size

size of the solutions populations (default to 20)

nb_max_gen

maximal number of generation to produce (default to 10)

prob_mutation

mutation probability (default to 0.25)

Kmax

maximum number of clusters (default to 100)

Examples

Hybrid()
#> An object of class "Hybrid"
#> Slot "pop_size":
#> [1] 20
#> 
#> Slot "nb_max_gen":
#> [1] 10
#> 
#> Slot "prob_mutation":
#> [1] 0.25
#> 
#> Slot "Kmax":
#> [1] 100
#> 
Hybrid(pop_size = 100)
#> An object of class "Hybrid"
#> Slot "pop_size":
#> [1] 100
#> 
#> Slot "nb_max_gen":
#> [1] 10
#> 
#> Slot "prob_mutation":
#> [1] 0.25
#> 
#> Slot "Kmax":
#> [1] 100
#>