From 30a7e371503b333d53394adb67cf3c0077dc4581 Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Wed, 22 May 2024 17:41:58 +0200 Subject: [PATCH] Update metaheuristics_example.ipynb --- book/pages/metaheuristics_example.ipynb | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/book/pages/metaheuristics_example.ipynb b/book/pages/metaheuristics_example.ipynb index 921c075..c6044e1 100644 --- a/book/pages/metaheuristics_example.ipynb +++ b/book/pages/metaheuristics_example.ipynb @@ -237,9 +237,22 @@ "source": [ "import scipy as sp \n", "import numpy as np\n", - "#import micropip\n", - "#await micropip.install(\"pymoo\")\n", - "%pip install pymoo\n", + "import micropip\n", + "await micropip.install(\"pymoo\")\n", + "#%pip install pymoo\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "7b7d6a93", + "metadata": { + "tags": [ + "thebe-remove-input-init" + ] + }, + "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",