diff --git a/content/GA_2_5/old_Analysis_GA_solution.ipynb b/content/GA_2_5/old_Analysis_GA_solution.ipynb index a7d7a06776bc5ffba297d42e40bd72f9f9a36983..40b8812e75d6b7961e83144258f321e3a0e5ee5d 100644 --- a/content/GA_2_5/old_Analysis_GA_solution.ipynb +++ b/content/GA_2_5/old_Analysis_GA_solution.ipynb @@ -25,15 +25,6 @@ "*[CEGM1000 MUDE](http://mude.citg.tudelft.nl/): Week 2.5. For: 15 December, 2023.*\n" ] }, - { - "cell_type": "markdown", - "metadata": { - "id": "0491cc69" - }, - "source": [ - "<div style=\"background-color:#ffa6a6; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%\"><p><b>Note:</b> during the in-class session some of the confusion was caused by code issues. Comments relevant to the code and notebooks as-used in the Friday in-class session are provided in boxes like this.</p></div>" - ] - }, { "cell_type": "markdown", "metadata": { @@ -99,15 +90,6 @@ "from pymoo.operators.crossover.pntx import PointCrossover # " ] }, - { - "cell_type": "markdown", - "metadata": { - "id": "0491cc69" - }, - "source": [ - "<div style=\"background-color:#ffa6a6; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%\"><p><b>Note:</b> the intention with the commented lines above was to illustrate possible crossover methods you could use, but unfortunately the pymoo documentation was not clear enough to indicate how they could have been used. The methods <code>SinglePointCrossover</code> and <code>TwoPointCrossover</code> (n<em>not</em> listed above!) could have been easily used, as these methods require no additional keyword arguments and would have worked “out of the box;†they were also illustrated with examples in the online textbook. We apologize for this oversight on our part.</p></div>" - ] - }, { "cell_type": "code", "execution_count": null, @@ -434,15 +416,6 @@ "Now that we have the required functions for reading and processing the data, let's define some problem parameters and prepare the input." ] }, - { - "cell_type": "markdown", - "metadata": { - "id": "0491cc69" - }, - "source": [ - "<div style=\"background-color:#ffa6a6; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%\"><p><b>Note:</b> the variables <code>extension_max_no</code> and <code>timelimit</code> were both defined here, but never used. <code>extension_max_no</code> is similar to the variable in notebook A with the same name; here it is superceded below by <code>Budget</code>.</p></div>" - ] - }, { "cell_type": "code", "execution_count": null, @@ -685,24 +658,6 @@ "<div style=\"background-color:#ffa6a6; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%\"><p><b>Note:</b> population size <code>pop_size</code> was 10 originally. If you change this, you will see different results. This is problem-dependent!</p></div>" ] }, - { - "cell_type": "markdown", - "metadata": { - "id": "0491cc69" - }, - "source": [ - "<div style=\"background-color:#ffa6a6; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%\"><p><b>This:</b> <code>Budget</code> is the way the number of links was selected (unlike notebook A, which used <code>extension_max_no</code>). </p></div>" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "id": "0491cc69" - }, - "source": [ - "<div style=\"background-color:#ffa6a6; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%\"><p><b>This:</b> <code>Budget</code> is the way the number of links was selected (unlike notebook A, which used <code>extension_max_no</code>). The initial value of 76 was trivial, and the solution converged quickly. Numbers between 10 and 40 would have produced <em>much</em> more interesting results (see solution explanation).</p></div>" - ] - }, { "cell_type": "code", "execution_count": null,