Skip to content

Commit 71f4ea7

Browse files
committed
📝 update of tutorial
1 parent 1733fde commit 71f4ea7

1 file changed

Lines changed: 26 additions & 3 deletions

File tree

tutorials/Identification_python model of an opaque wall.ipynb

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@
7272
"import pandas as pd\n",
7373
"import datetime as dt\n",
7474
"\n",
75-
"from docutils.nodes import reference\n",
76-
"\n",
7775
"from corrai.base.model import PyModel\n",
7876
"\n",
7977
"class OpaqueWallSimple(PyModel):\n",
@@ -439,7 +437,7 @@
439437
"id": "9a24e457cc8ad243",
440438
"metadata": {},
441439
"source": [
442-
"from corrai.optimize import SciOptimizer, MixedProblem\n",
440+
"from corrai.optimize import SciOptimizer\n",
443441
"\n",
444442
"sci_opt = SciOptimizer(\n",
445443
" model=OpaqueWallSimple(),\n",
@@ -848,6 +846,31 @@
848846
"outputs": [],
849847
"execution_count": null
850848
},
849+
{
850+
"metadata": {},
851+
"cell_type": "markdown",
852+
"source": [
853+
"You can use the function `plot_parameter_forest` from **corrai.optimize**, or as a method directly implemented in `PymooModelEvaluator`.\n",
854+
"\n",
855+
"This function provides a compact visualization of the calibrated parameters, showing the optimized value together with the lower and upper bounds defined for each parameter. It can be displayed either in absolute values, relative values, or normalized coordinates, making it easy to identify parameters that converge near their admissible limits."
856+
],
857+
"id": "825951bc1bc47737"
858+
},
859+
{
860+
"metadata": {},
861+
"cell_type": "code",
862+
"source": [
863+
"pymoo_ev.plot_parameter_forest(\n",
864+
" optimal_values=res.X[i],\n",
865+
" mode=\"absolute\",\n",
866+
" width=300,\n",
867+
" height=300,\n",
868+
")"
869+
],
870+
"id": "16afc5745eea4fd6",
871+
"outputs": [],
872+
"execution_count": null
873+
},
851874
{
852875
"cell_type": "markdown",
853876
"id": "6af5abd476a2d1ce",

0 commit comments

Comments
 (0)