Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Update metaheuristics_example.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-van-Woudenberg committed May 22, 2024
1 parent dd1d652 commit 89ade51
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions book/pages/metaheuristics_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@
},
"outputs": [],
"source": [
"from pymoo.problems.functional import FunctionalProblem as FunctionalProblem #import problem definer\n",
"from pymoo.algorithms.soo.nonconvex.ga import GA #import algoritm\n",
"from pymoo.optimize import minimize #import general minimizer\n",
"from pymoo.operators.sampling.rnd import IntegerRandomSampling #used for random integer creation\n",
"from pymoo.operators.crossover.sbx import SBX #needed for adapting function for integers\n",
"from pymoo.operators.mutation.pm import PM #needed for adapting function for integers\n",
"from pymoo.operators.repair.rounding import RoundingRepair #used for treating integer values"
"from pymoo.problems.functional import FunctionalProblem as FunctionalProblem\n",
"from pymoo.algorithms.soo.nonconvex.ga import GA\n",
"from pymoo.optimize import minimize\n",
"from pymoo.operators.sampling.rnd import IntegerRandomSampling \n",
"from pymoo.operators.crossover.sbx import SBX\n",
"from pymoo.operators.mutation.pm import PM\n",
"from pymoo.operators.repair.rounding import RoundingRepair"
]
},
{
Expand All @@ -237,8 +237,9 @@
"source": [
"import scipy as sp \n",
"import numpy as np\n",
"import micropip\n",
"await micropip.install(\"pymoo\")\n",
"#import micropip\n",
"#await micropip.install(\"pymoo\")\n",
"%pip install pymoo\n",
"from pymoo.problems.functional import FunctionalProblem as FunctionalProblem #import problem definer\n",
"from pymoo.algorithms.soo.nonconvex.ga import GA #import algoritm\n",
"from pymoo.optimize import minimize #import general minimizer\n",
Expand Down

0 comments on commit 89ade51

Please sign in to comment.