Binary

bm_royal_road_1(individual, order)
Royal Road Function R1 as presented by Melanie Mitchell
in “An introduction to Genetic Algorithms”.
Parameters
  • individual (Individual) – The individual to be evaluated.

  • order (int) – The order of the royal road function.

Returns

The value of the royal road function.

Return type

tuple[int]

bm_royal_road_2(individual, order)
Royal Road Function R2 as presented by Melanie Mitchell
in “An introduction to Genetic Algorithms”.
Parameters
  • individual (Individual) – The individual to be evaluated.

  • order (int) – The order of the royal road function.

Returns

The value of the royal road function.

Return type

tuple[int]

bm_chuang_f1(individual)
Binary deceptive function by Chung-Yao Chuang and Wen-Lian Hsu from
“Multivariate Multi-Model Approach for Globally Multimodal Problems”.

The function has two global optima in [1,1,…,1] and [0,0,…,0].
The individual has to be of 40 + 1 dimensions.
Parameters

individual (Individual) – The individual to be evaluated.

Returns

The value of the deceptive function.

Return type

tuple[int]

bm_chuang_f2(individual)
Binary deceptive function by Chung-Yao Chuang and Wen-Lian Hsu from
“Multivariate Multi-Model Approach for Globally Multimodal Problems”.

The function has four global optima in [1,1,…,0,0], [0,0,…,1,1],
[1,1,…,1] and [0,0,…,0]. The individual has to be of 40 + 1 dimensions.
Parameters

individual (Individual) – The individual to be evaluated.

Returns

The value of the deceptive function.

Return type

tuple[int]

bm_chuang_f3(individual)
Binary deceptive function by Chung-Yao Chuang and Wen-Lian Hsu from
“Multivariate Multi-Model Approach for Globally Multimodal Problems”.

The function has two global optima in [1,1,…,1] and [0,0,…,0].
The individual has to be of 40 + 1 dimensions.
Parameters

individual (Individual) – The individual to be evaluated.

Returns

The value of the deceptive function.

Return type

tuple[int]