Skip to content

Commit 4dae90a

Browse files
committed
Quick fix of Documentation
1 parent fb164b2 commit 4dae90a

File tree

2 files changed

+214
-110
lines changed

2 files changed

+214
-110
lines changed

docs/source/algorithms/moo/rvea.ipynb

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
{
44
"cell_type": "raw",
55
"metadata": {
6+
"pycharm": {
7+
"name": "#%% raw\n"
8+
},
69
"raw_mimetype": "text/restructuredtext"
710
},
811
"source": [
@@ -11,21 +14,33 @@
1114
},
1215
{
1316
"cell_type": "markdown",
14-
"metadata": {},
17+
"metadata": {
18+
"pycharm": {
19+
"name": "#%% md\n"
20+
}
21+
},
1522
"source": [
1623
"# RVEA: Reference Vector Guided Evolutionary Algorithm"
1724
]
1825
},
1926
{
2027
"cell_type": "markdown",
21-
"metadata": {},
28+
"metadata": {
29+
"pycharm": {
30+
"name": "#%% md\n"
31+
}
32+
},
2233
"source": [
2334
"The algorithm is implemented based on <cite data-cite=\"rvea\"></cite>. In RVEA, a scalarization approach, termed angle penalized distance (APD), is adopted to balance the convergence and diversity of the solutions in the high-dimensional objective space. Furthermore, an adaptation strategy is proposed to dynamically adjust the reference vectors' distribution according to the objective functions' scales. An illustration of the APD is shown below:"
2435
]
2536
},
2637
{
2738
"cell_type": "markdown",
28-
"metadata": {},
39+
"metadata": {
40+
"pycharm": {
41+
"name": "#%% md\n"
42+
}
43+
},
2944
"source": [
3045
"<div style=\"text-align: center;\">\n",
3146
" <img src=\"https://github.com/anyoptimization/pymoo-data/blob/main/docs/images/rvea_apd.png?raw=true\" width=\"350\">\n",
@@ -34,14 +49,21 @@
3449
},
3550
{
3651
"cell_type": "markdown",
37-
"metadata": {},
52+
"metadata": {
53+
"pycharm": {
54+
"name": "#%% md\n"
55+
}
56+
},
3857
"source": [
3958
"### Example"
4059
]
4160
},
4261
{
4362
"cell_type": "raw",
4463
"metadata": {
64+
"pycharm": {
65+
"name": "#%% raw\n"
66+
},
4567
"raw_mimetype": "text/restructuredtext"
4668
},
4769
"source": [
@@ -61,6 +83,9 @@
6183
"iopub.status.idle": "2022-07-30T17:29:20.876415Z",
6284
"shell.execute_reply": "2022-07-30T17:29:20.875689Z"
6385
},
86+
"pycharm": {
87+
"name": "#%%\n"
88+
},
6489
"tags": []
6590
},
6691
"outputs": [],
@@ -84,21 +109,28 @@
84109
" verbose=False)\n",
85110
"\n",
86111
"plot = Scatter()\n",
87-
"plot.add(problem.pareto_front(ref_dirs), plot_type=\"line\", color=\"black\", alpha=0.7)\n",
112+
"plot.add(problem.pareto_front(ref_dirs), plot_type=\"surface\", color=\"black\", alpha=0.7)\n",
88113
"plot.add(res.F, color=\"red\")\n",
89114
"plot.show()"
90115
]
91116
},
92117
{
93118
"cell_type": "markdown",
94-
"metadata": {},
119+
"metadata": {
120+
"pycharm": {
121+
"name": "#%% md\n"
122+
}
123+
},
95124
"source": [
96125
"### API"
97126
]
98127
},
99128
{
100129
"cell_type": "raw",
101130
"metadata": {
131+
"pycharm": {
132+
"name": "#%% raw\n"
133+
},
102134
"raw_mimetype": "text/restructuredtext"
103135
},
104136
"source": [

0 commit comments

Comments
 (0)