-[docs]
+[docs]deffloat_to_bits(float_number:float)->list[int]:""" Convert a float to its bit representation.
@@ -96,7 +96,7 @@
Source code for src.byte_operators
-[docs]
+[docs]defbits_to_float(bit_list:list[int])->float:""" Convert a bit representation to its float value.
@@ -120,7 +120,7 @@
Source code for src.byte_operators
-[docs]
+[docs]deffloats_to_bits(float_list:list[float])->list[int]:""" Convert a list of floats to their combined bit representation.
@@ -144,7 +144,7 @@
Source code for src.byte_operators
-[docs]
+[docs]defbits_to_floats(bit_list:list[int])->list[float]:""" Convert a combined bit representation back to a list of floats.
diff --git a/_modules/src/example/example_alpha_cga.html b/_modules/pycellga/example/example_alpha_cga.html
similarity index 93%
rename from _modules/src/example/example_alpha_cga.html
rename to _modules/pycellga/example/example_alpha_cga.html
index 3e13299..81e1019 100644
--- a/_modules/src/example/example_alpha_cga.html
+++ b/_modules/pycellga/example/example_alpha_cga.html
@@ -3,7 +3,7 @@
- src.example.example_alpha_cga — PYCELLGA Documentation 1.0.0 documentation
+ pycellga.example.example_alpha_cga — PYCELLGA Documentation 1.0.0 documentation
@@ -61,7 +61,7 @@
-[docs]
+[docs]classBitFlipMutation(MutationOperator):""" BitFlipMutation performs a bit flip mutation on an individual in a Genetic Algorithm.
@@ -91,7 +91,7 @@
Source code for src.mutation.bit_flip_mutation
"""
-[docs]
+[docs]def__init__(self,mutation_cand:Individual=None,problem:AbstractProblem=None):""" Initialize the BitFlipMutation object.
@@ -108,7 +108,7 @@
Source code for src.mutation.bit_flip_mutation
-[docs]
+[docs]defmutate(self)->Individual:""" Perform a bit flip mutation on the candidate individual.
diff --git a/_modules/src/mutation/byte_mutation.html b/_modules/pycellga/mutation/byte_mutation.html
similarity index 95%
rename from _modules/src/mutation/byte_mutation.html
rename to _modules/pycellga/mutation/byte_mutation.html
index 62c8808..38ed5b9 100644
--- a/_modules/src/mutation/byte_mutation.html
+++ b/_modules/pycellga/mutation/byte_mutation.html
@@ -3,7 +3,7 @@
-[docs]
+[docs]classFloatUniformMutation(MutationOperator):""" FloatUniformMutation performs a uniform mutation on an individual's chromosome in a Genetic Algorithm.
@@ -91,7 +91,7 @@
Source code for src.mutation.float_uniform_mutation
"""
-[docs]
+[docs]def__init__(self,mutation_cand:Individual=None,problem:AbstractProblem=None):""" Initialize the FloatUniformMutation object.
@@ -108,7 +108,7 @@
Source code for src.mutation.float_uniform_mutation
-[docs]
+[docs]defmutate(self)->Individual:""" Perform a uniform mutation on the candidate individual.
diff --git a/_modules/src/mutation/insertion_mutation.html b/_modules/pycellga/mutation/insertion_mutation.html
similarity index 94%
rename from _modules/src/mutation/insertion_mutation.html
rename to _modules/pycellga/mutation/insertion_mutation.html
index 12ac9b7..2f6e97c 100644
--- a/_modules/src/mutation/insertion_mutation.html
+++ b/_modules/pycellga/mutation/insertion_mutation.html
@@ -3,7 +3,7 @@
- src.mutation.insertion_mutation — PYCELLGA Documentation 1.0.0 documentation
+ pycellga.mutation.insertion_mutation — PYCELLGA Documentation 1.0.0 documentation
@@ -61,7 +61,7 @@
-[docs]
+[docs]classInsertionMutation(MutationOperator):""" InsertionMutation performs an insertion mutation on an individual's chromosome in a Genetic Algorithm.
@@ -91,7 +91,7 @@
Source code for src.mutation.insertion_mutation
<
"""
-[docs]
+[docs]def__init__(self,mutation_cand:Individual=None,problem:AbstractProblem=None):""" Initialize the InsertionMutation object.
@@ -108,7 +108,7 @@
Source code for src.mutation.insertion_mutation
<
-[docs]
+[docs]defmutate(self)->Individual:""" Perform an insertion mutation on the candidate individual.
diff --git a/_modules/src/mutation/mutation_operator.html b/_modules/pycellga/mutation/mutation_operator.html
similarity index 88%
rename from _modules/src/mutation/mutation_operator.html
rename to _modules/pycellga/mutation/mutation_operator.html
index 20009c9..3a26799 100644
--- a/_modules/src/mutation/mutation_operator.html
+++ b/_modules/pycellga/mutation/mutation_operator.html
@@ -3,7 +3,7 @@
- src.mutation.mutation_operator — PYCELLGA Documentation 1.0.0 documentation
+ pycellga.mutation.mutation_operator — PYCELLGA Documentation 1.0.0 documentation
@@ -61,7 +61,7 @@
from mutation.mutation_operatorimportMutationOperator
-[docs]
+[docs]classShuffleMutation(MutationOperator):""" ShuffleMutation performs a shuffle mutation on an individual's chromosome in a Genetic Algorithm.
@@ -92,7 +92,7 @@
Source code for src.mutation.shuffle_mutation
"""
-[docs]
+[docs]def__init__(self,mutation_cand:Individual=None,problem:AbstractProblem=None):""" Initialize the ShuffleMutation object.
@@ -109,7 +109,7 @@
Source code for src.mutation.shuffle_mutation
-[docs]
+[docs]defmutate(self)->Individual:""" Perform a shuffle mutation on the candidate individual.
diff --git a/_modules/src/mutation/swap_mutation.html b/_modules/pycellga/mutation/swap_mutation.html
similarity index 94%
rename from _modules/src/mutation/swap_mutation.html
rename to _modules/pycellga/mutation/swap_mutation.html
index b035859..75f1e89 100644
--- a/_modules/src/mutation/swap_mutation.html
+++ b/_modules/pycellga/mutation/swap_mutation.html
@@ -3,7 +3,7 @@
- src.mutation.swap_mutation — PYCELLGA Documentation 1.0.0 documentation
+ pycellga.mutation.swap_mutation — PYCELLGA Documentation 1.0.0 documentation
@@ -61,7 +61,7 @@
-[docs]
+[docs]classSwapMutation(MutationOperator):""" SwapMutation performs a swap mutation on an individual's chromosome in a Genetic Algorithm.
@@ -91,7 +91,7 @@
Source code for src.mutation.swap_mutation
"""
-[docs]
+[docs]def__init__(self,mutation_cand:Individual=None,problem:AbstractProblem=None):""" Initialize the SwapMutation object.
@@ -108,7 +108,7 @@
Source code for src.mutation.swap_mutation
-[docs]
+[docs]defmutate(self)->Individual:""" Perform a swap mutation on the candidate individual.
diff --git a/_modules/src/mutation/two_opt_mutation.html b/_modules/pycellga/mutation/two_opt_mutation.html
similarity index 94%
rename from _modules/src/mutation/two_opt_mutation.html
rename to _modules/pycellga/mutation/two_opt_mutation.html
index 6e9dbe9..5c6bb69 100644
--- a/_modules/src/mutation/two_opt_mutation.html
+++ b/_modules/pycellga/mutation/two_opt_mutation.html
@@ -3,7 +3,7 @@
- src.mutation.two_opt_mutation — PYCELLGA Documentation 1.0.0 documentation
+ pycellga.mutation.two_opt_mutation — PYCELLGA Documentation 1.0.0 documentation
@@ -61,7 +61,7 @@
-[docs]
+[docs]classTwoOptMutation(MutationOperator):""" TwoOptMutation performs a 2-opt mutation on an individual's chromosome in a Genetic Algorithm.
@@ -91,7 +91,7 @@
Source code for src.mutation.two_opt_mutation
"""
-[docs]
+[docs]def__init__(self,mutation_cand:Individual=None,problem:AbstractProblem=None):""" Initialize the TwoOptMutation object.
@@ -108,7 +108,7 @@
Source code for src.mutation.two_opt_mutation
-[docs]
+[docs]defmutate(self)->Individual:""" Perform a 2-opt mutation on the candidate individual.
diff --git a/_modules/src/neighborhoods/compact_13.html b/_modules/pycellga/neighborhoods/compact_13.html
similarity index 95%
rename from _modules/src/neighborhoods/compact_13.html
rename to _modules/pycellga/neighborhoods/compact_13.html
index 56607cc..10f2560 100644
--- a/_modules/src/neighborhoods/compact_13.html
+++ b/_modules/pycellga/neighborhoods/compact_13.html
@@ -3,7 +3,7 @@
- src.neighborhoods.compact_13 — PYCELLGA Documentation 1.0.0 documentation
+ pycellga.neighborhoods.compact_13 — PYCELLGA Documentation 1.0.0 documentation
@@ -61,7 +61,7 @@
-[docs]
+[docs]classCompact13:""" Compact13 calculates the positions of the 12 neighbors in a 2D grid for a given position,
@@ -89,7 +89,7 @@
Source code for src.neighborhoods.compact_13
"""
-[docs]
+[docs]def__init__(self,position,n_rows,n_cols):""" Initialize the Compact13 object.
@@ -109,7 +109,7 @@
Source code for src.neighborhoods.compact_13
-[docs]
+[docs]defcalculate_neighbors_positions(self)->list:""" Calculate the positions of the 12 neighbors for the given position in the grid.
diff --git a/_modules/src/neighborhoods/compact_21.html b/_modules/pycellga/neighborhoods/compact_21.html
similarity index 95%
rename from _modules/src/neighborhoods/compact_21.html
rename to _modules/pycellga/neighborhoods/compact_21.html
index b6afe26..60c5e57 100644
--- a/_modules/src/neighborhoods/compact_21.html
+++ b/_modules/pycellga/neighborhoods/compact_21.html
@@ -3,7 +3,7 @@
- src.neighborhoods.compact_21 — PYCELLGA Documentation 1.0.0 documentation
+ pycellga.neighborhoods.compact_21 — PYCELLGA Documentation 1.0.0 documentation
@@ -61,7 +61,7 @@
-[docs]
+[docs]classCompact21:""" Compact21 calculates the positions of the 20 neighbors in a 2D grid for a given position,
@@ -89,7 +89,7 @@
Source code for src.neighborhoods.compact_21
"""
-[docs]
+[docs]def__init__(self,position,n_rows,n_cols):""" Initialize the Compact21 object.
@@ -109,7 +109,7 @@
Source code for src.neighborhoods.compact_21
-[docs]
+[docs]defcalculate_neighbors_positions(self)->list:""" Calculate the positions of the 20 neighbors for the given position in the grid.
diff --git a/_modules/src/neighborhoods/compact_25.html b/_modules/pycellga/neighborhoods/compact_25.html
similarity index 95%
rename from _modules/src/neighborhoods/compact_25.html
rename to _modules/pycellga/neighborhoods/compact_25.html
index 8688a65..567385b 100644
--- a/_modules/src/neighborhoods/compact_25.html
+++ b/_modules/pycellga/neighborhoods/compact_25.html
@@ -3,7 +3,7 @@
- src.neighborhoods.compact_25 — PYCELLGA Documentation 1.0.0 documentation
+ pycellga.neighborhoods.compact_25 — PYCELLGA Documentation 1.0.0 documentation
@@ -61,7 +61,7 @@
-[docs]
+[docs]classCompact25:""" Compact25 calculates the positions of the 24 neighbors in a 2D grid for a given position,
@@ -89,7 +89,7 @@
Source code for src.neighborhoods.compact_25
"""
-[docs]
+[docs]def__init__(self,position,n_rows,n_cols):""" Initialize the Compact25 object.
@@ -109,7 +109,7 @@
Source code for src.neighborhoods.compact_25
-[docs]
+[docs]defcalculate_neighbors_positions(self)->list:""" Calculate the positions of the 24 neighbors for the given position in the grid.
diff --git a/_modules/src/neighborhoods/compact_9.html b/_modules/pycellga/neighborhoods/compact_9.html
similarity index 95%
rename from _modules/src/neighborhoods/compact_9.html
rename to _modules/pycellga/neighborhoods/compact_9.html
index fce6002..a19f227 100644
--- a/_modules/src/neighborhoods/compact_9.html
+++ b/_modules/pycellga/neighborhoods/compact_9.html
@@ -3,7 +3,7 @@
- src.neighborhoods.compact_9 — PYCELLGA Documentation 1.0.0 documentation
+ pycellga.neighborhoods.compact_9 — PYCELLGA Documentation 1.0.0 documentation
@@ -61,7 +61,7 @@
-[docs]
+[docs]classCompact9:""" Compact9 calculates the positions of the 8 neighbors in a 2D grid for a given position,
@@ -89,7 +89,7 @@
Source code for src.neighborhoods.compact_9
"""
-[docs]
+[docs]def__init__(self,position,n_rows,n_cols):""" Initialize the Compact9 object.
@@ -109,7 +109,7 @@
Source code for src.neighborhoods.compact_9
-[docs]
+[docs]defcalculate_neighbors_positions(self)->list:""" Calculate the positions of the 8 neighbors for the given position in the grid.
diff --git a/_modules/src/neighborhoods/linear_5.html b/_modules/pycellga/neighborhoods/linear_5.html
similarity index 94%
rename from _modules/src/neighborhoods/linear_5.html
rename to _modules/pycellga/neighborhoods/linear_5.html
index 3f3068f..080a15f 100644
--- a/_modules/src/neighborhoods/linear_5.html
+++ b/_modules/pycellga/neighborhoods/linear_5.html
@@ -3,7 +3,7 @@
- src.neighborhoods.linear_5 — PYCELLGA Documentation 1.0.0 documentation
+ pycellga.neighborhoods.linear_5 — PYCELLGA Documentation 1.0.0 documentation
@@ -61,7 +61,7 @@