Skip to content

Commit 28c07c9

Browse files
committed
Rerun all examples.
1 parent 61134e4 commit 28c07c9

12 files changed

Lines changed: 182 additions & 184 deletions

examples/binh_and_korn_multiobjective.ipynb

Lines changed: 9 additions & 11 deletions
Large diffs are not rendered by default.

examples/easom_in_parallel.ipynb

Lines changed: 8 additions & 8 deletions
Large diffs are not rendered by default.

examples/one_max.ipynb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
{
3535
"cell_type": "code",
36-
"execution_count": 1,
36+
"execution_count": 7,
3737
"id": "eaaf5c05",
3838
"metadata": {},
3939
"outputs": [],
@@ -56,7 +56,7 @@
5656
},
5757
{
5858
"cell_type": "code",
59-
"execution_count": 2,
59+
"execution_count": 8,
6060
"id": "d2ea5d6d",
6161
"metadata": {},
6262
"outputs": [],
@@ -65,7 +65,7 @@
6565
"from pygenalgo.genome.gene import Gene\n",
6666
"from pygenalgo.genome.chromosome import Chromosome\n",
6767
"from pygenalgo.engines.standard_ga import StandardGA\n",
68-
"from pygenalgo.engines.auxiliary import cost_function\n",
68+
"from pygenalgo.utils.utilities import cost_function\n",
6969
"\n",
7070
"# Import Selection Operator(s).\n",
7171
"from pygenalgo.operators.selection.linear_rank_selector import LinearRankSelector\n",
@@ -87,7 +87,7 @@
8787
},
8888
{
8989
"cell_type": "code",
90-
"execution_count": 3,
90+
"execution_count": 9,
9191
"id": "4e87f0f4",
9292
"metadata": {},
9393
"outputs": [],
@@ -117,7 +117,7 @@
117117
},
118118
{
119119
"cell_type": "code",
120-
"execution_count": 4,
120+
"execution_count": 10,
121121
"id": "7d6d23cd",
122122
"metadata": {},
123123
"outputs": [],
@@ -162,18 +162,18 @@
162162
},
163163
{
164164
"cell_type": "code",
165-
"execution_count": 5,
165+
"execution_count": 11,
166166
"id": "34385a87",
167167
"metadata": {},
168168
"outputs": [
169169
{
170170
"name": "stdout",
171171
"output_type": "stream",
172172
"text": [
173-
"Initial Avg. Fitness = 24.9400\n",
174-
"StandardGA finished in 15 iterations.\n",
175-
"Final Avg. Fitness = 44.0000\n",
176-
"Elapsed time: 1.495 seconds.\n"
173+
"Initial Avg. Fitness = 24.5400\n",
174+
"StandardGA finished in 17 iterations.\n",
175+
"Final Avg. Fitness = 46.4000\n",
176+
"Elapsed time: 1.608 seconds.\n"
177177
]
178178
}
179179
],
@@ -183,7 +183,7 @@
183183
},
184184
{
185185
"cell_type": "code",
186-
"execution_count": 6,
186+
"execution_count": 12,
187187
"id": "a0d8d136",
188188
"metadata": {},
189189
"outputs": [
@@ -297,7 +297,7 @@
297297
"name": "python",
298298
"nbconvert_exporter": "python",
299299
"pygments_lexer": "ipython3",
300-
"version": "3.10.13"
300+
"version": "3.10.18"
301301
}
302302
},
303303
"nbformat": 4,

examples/osyczka_kundu_multiobjective.ipynb

Lines changed: 26 additions & 26 deletions
Large diffs are not rendered by default.

examples/queens_puzzle.ipynb

Lines changed: 14 additions & 13 deletions
Large diffs are not rendered by default.

examples/rastrigin.ipynb

Lines changed: 20 additions & 20 deletions
Large diffs are not rendered by default.

examples/rosenbrock_on_a_disk.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"from pygenalgo.genome.gene import Gene\n",
6969
"from pygenalgo.genome.chromosome import Chromosome\n",
7070
"from pygenalgo.engines.standard_ga import StandardGA\n",
71-
"from pygenalgo.engines.auxiliary import cost_function\n",
71+
"from pygenalgo.utils.utilities import cost_function\n",
7272
"\n",
7373
"# Import Selection Operator(s).\n",
7474
"from pygenalgo.operators.selection.linear_rank_selector import LinearRankSelector\n",
@@ -188,9 +188,9 @@
188188
"name": "stdout",
189189
"output_type": "stream",
190190
"text": [
191-
"Initial Avg. Fitness = -230.0413\n",
192-
"Final Avg. Fitness = -22.4369\n",
193-
"Elapsed time: 18.977 seconds.\n"
191+
"Initial Avg. Fitness = -152.7617\n",
192+
"Final Avg. Fitness = -27.7900\n",
193+
"Elapsed time: 15.606 seconds.\n"
194194
]
195195
}
196196
],
@@ -208,10 +208,10 @@
208208
"name": "stdout",
209209
"output_type": "stream",
210210
"text": [
211-
"Minimum Found: 0.00000\n",
211+
"Minimum Found: 0.00060\n",
212212
"\n",
213-
"x = 1.00030\n",
214-
"y = 1.00070\n"
213+
"x = 0.97543\n",
214+
"y = 0.95154\n"
215215
]
216216
}
217217
],
@@ -266,7 +266,7 @@
266266
"name": "python",
267267
"nbconvert_exporter": "python",
268268
"pygments_lexer": "ipython3",
269-
"version": "3.10.16"
269+
"version": "3.10.18"
270270
}
271271
},
272272
"nbformat": 4,

examples/sphere.ipynb

Lines changed: 21 additions & 22 deletions
Large diffs are not rendered by default.

examples/sphere_in_parallel.ipynb

Lines changed: 15 additions & 15 deletions
Large diffs are not rendered by default.

examples/tanaka_multiobjective.ipynb

Lines changed: 17 additions & 17 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)