forked from anyoptimization/pymoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
806 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ Algorithms | |
differential_evolution | ||
genetic_algorithm | ||
nsga2 | ||
rnsga2 | ||
nsga3 | ||
unsga3 | ||
rnsga3 | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "raw", | ||
"metadata": { | ||
"raw_mimetype": "text/restructuredtext" | ||
}, | ||
"source": [ | ||
".. _nb_rnsga2:" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## R-NSGA-II" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"<div style=\"display: block;margin-left: auto;margin-right: auto;width: 80%;\">\n", | ||
"![nsga2_survival](../resources/images/nsga2_survival.png)\n", | ||
"</div>" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"<div style=\"display: block;margin-left: auto;margin-right: auto;width: 50%;\">\n", | ||
"![nsga2_crowding](../resources/images/nsga2_crowding.png)\n", | ||
"</div>" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"### Example" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAD8CAYAAACMwORRAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4yLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvOIA7rQAAIABJREFUeJzt3Xt8VOW97/HPLxdIoEr2BrqBBBs4tWzl0gDRrZWjthal0gK9oVTb3VMVlVKxFxR6sSltX6XQrcXWs08p7cFaqlIFSht9cXalXvBKhFQLFouIJSEcAQtHYSIh+Z0/ZgYnySSZSeY+3/frxYvMmmfWPIuQb575rWc9y9wdERHJLQXp7oCIiCSewl1EJAcp3EVEcpDCXUQkByncRURykMJdRCQHKdxFRHKQwl1EJAcp3EVEclBRut54yJAhXllZma63FxHJSs8///whdx/aU7u0hXtlZSV1dXXpensRkaxkZq/F0k5lGRGRHKRwFxHJQQp3EZEclLaau4jkjpaWFhoaGmhubk53V3JGSUkJFRUVFBcX9+r1CncR6bOGhgZOO+00KisrMbN0dyfruTuHDx+moaGBUaNG9WofKsuISJ81NzczePBgBXuCmBmDBw/u0ychhbuIJISCPbH6+u/ZY7ib2S/N7HUz+0sXz5uZ3Wlmu83sBTOb1KceiYhIn8Uycl8NTOvm+Y8AZ4b+zAX+s+/d6tmG7Y1csHQzoxbVcsHSzWzY3piKtxWRLPPEE08wduxYqqqqCAQC6e5OyvQY7u7+OP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xMwshX1MlB6P1d3/5O7HQw+fIXhf22wVy/cW4LvAD4HmVHYuCWI53uuAu9z9HwDu/nqK+5hIsRyvA6eHvh4E7E9h/xLK3R8neDe6rswEfuVBzwBlZjY8GX3JlnAvB/ZFPG4IbYvaxt1PAkeBwSnpXWLFcqyRriE4EshWPR5v6KPrSHevTWXHkiSW7+/7gPeZ2ZNm9oyZTUtZ7xIvluOtAa42swaCd3z7Umq6lhbx/nz3Wky32ZPMZGZXA9XARenuS7KYWQFwO/D5NHcllYoIlmYuJvip7HEzG+/uR9Laq+SZA6x29/8ws/MJ3o95nLu3pbtj2SxbRu6NwMiIxxWhbVHbmFkRwY93h1PSu8SK5Vgxsw8D3wBmuPvbKepbMvR0vKcB44BHzWwvwTrlxiw+qRrL97cB2OjuLe7+KvAywbDPRrEc7zXAWgB3fxooIbgOSy6K6ec7EbIl3LcCZ5rZKDPrR/CE6cYObTYC/x76+lPAZg+dwchtHRZLAAABCUlEQVQyPR6rmU0EfkYw2LO5Hgs9HK+7H3X3Ie5e6e6VBM8xzHD3uvR0t89i+b+8geCoHTMbQrBMsyeVnUygWI7378AlAGZ2FsFwP5jSXqbORuBzoVkz5wFH3b0pKe+U7rPLcZyFvpzgCOYV4BuhbUsI/qBD8D/Eb4HdwHPA6HT3OYnH+kfg/wL1oT8b093nZB5vh7aPksWzZWL8/hrBUtRO4EXgynT3OcnHezbwJMGZNPXApenucx+O9V6gCWgh+AnsGuAG4IaI7+1doX+LF5P5f1lXqIqI5KBsKcuIiEgcFO4iIjlI4S4ikoMU7iIiOUjhLiKSgxTuIiI5SOEuIpKDFO4iIjno/wPAsEq+NCnW8QAAAABJRU5ErkJggg==\n", | ||
"text/plain": [ | ||
"<Figure size 432x288 with 1 Axes>" | ||
] | ||
}, | ||
"metadata": {}, | ||
"output_type": "display_data" | ||
} | ||
], | ||
"source": [ | ||
"import numpy as np\n", | ||
"\n", | ||
"from pymoo.optimize import minimize\n", | ||
"from pymoo.util import plotting\n", | ||
"from pymop.factory import get_problem\n", | ||
"\n", | ||
"problem = get_problem(\"zdt1\", n_var=30)\n", | ||
"pf = problem.pareto_front()\n", | ||
"\n", | ||
"# create the reference directions to be used for the optimization\n", | ||
"ref_points = np.array([[0.5, 0.2], [0.1, 0.6]])\n", | ||
"\n", | ||
"res = minimize(problem,\n", | ||
" method='rnsga2',\n", | ||
" method_args={\n", | ||
" 'pop_size': 40,\n", | ||
" 'ref_points': ref_points,\n", | ||
" 'epsilon': 0.01,\n", | ||
" 'normalization': 'front',\n", | ||
" 'survival_type': \"closest\",\n", | ||
" 'extreme_points_as_reference_points': False,\n", | ||
" 'weights': np.array([0.5, 0.5])\n", | ||
" },\n", | ||
" save_history=True,\n", | ||
" termination=('n_gen', 250),\n", | ||
" seed=1,\n", | ||
" pf=pf,\n", | ||
" disp=False)\n", | ||
"\n", | ||
"plotting.plot(pf, res.F, ref_points, show=True, labels=['pf', 'F', 'ref_points'])\n", | ||
"\n" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"### API" | ||
] | ||
}, | ||
{ | ||
"cell_type": "raw", | ||
"metadata": { | ||
"raw_mimetype": "text/restructuredtext" | ||
}, | ||
"source": [ | ||
".. autofunction:: pymoo.algorithms.rnsga2.rnsga2\n", | ||
" :noindex:" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"celltoolbar": "Raw Cell Format", | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.6.5" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.