You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: notebooks/demo_fcsa.ipynb
+61Lines changed: 61 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,26 @@
1
1
{
2
2
"cells": [
3
+
{
4
+
"cell_type": "markdown",
5
+
"id": "04c470f6",
6
+
"metadata": {},
7
+
"source": [
8
+
"# Demo for an experiment with FCSA on the SAN problem\n",
9
+
"This script is intented to demonstrate an experiment with three different versions of the FCSA solver on the SAN problem. "
10
+
]
11
+
},
12
+
{
13
+
"cell_type": "markdown",
14
+
"id": "8dffeae6",
15
+
"metadata": {},
16
+
"source": [
17
+
"## Append SimOpt Path\n",
18
+
"\n",
19
+
"Since the notebook is stored in simopt/notebooks, we need to append the\n",
20
+
"parent simopt directory to the system path to import the necessary modules\n",
21
+
"later on."
22
+
]
23
+
},
3
24
{
4
25
"cell_type": "code",
5
26
"execution_count": null,
@@ -32,6 +53,16 @@
32
53
"from simopt.solvers.fcsa import FCSA"
33
54
]
34
55
},
56
+
{
57
+
"cell_type": "markdown",
58
+
"id": "dc0e1dfe",
59
+
"metadata": {},
60
+
"source": [
61
+
"## Experiment Configuration Parameters\n",
62
+
"\n",
63
+
"Configure 3 versions of the solver: CSA, CSA-N, and FCSA and set problem configuration. Set report_all_solutions = True meaning all incumbent solutions will be reported. "
64
+
]
65
+
},
35
66
{
36
67
"cell_type": "code",
37
68
"execution_count": null,
@@ -117,6 +148,16 @@
117
148
"post_normalize(experiments, n_postreps)"
118
149
]
119
150
},
151
+
{
152
+
"cell_type": "markdown",
153
+
"id": "6d42598f",
154
+
"metadata": {},
155
+
"source": [
156
+
"## Plotting Settings\n",
157
+
"\n",
158
+
"Define the plotting settings for the experiments. Plot terminal objective progress, terminal feasibility progress, objective progress curve, and feasiblity progress curve for all incumbent solutions."
159
+
]
160
+
},
120
161
{
121
162
"cell_type": "code",
122
163
"execution_count": null,
@@ -185,6 +226,16 @@
185
226
")"
186
227
]
187
228
},
229
+
{
230
+
"cell_type": "markdown",
231
+
"id": "418eefec",
232
+
"metadata": {},
233
+
"source": [
234
+
"## Experiment Configuration Parameters\n",
235
+
"\n",
236
+
"Configure 2 versions of the solver: CSA-N, and FCSA and set problem configuration. Set report_all_solutions = False meaning only recommended solutions will be reported. "
237
+
]
238
+
},
188
239
{
189
240
"cell_type": "code",
190
241
"execution_count": null,
@@ -226,6 +277,16 @@
226
277
"post_normalize([experiment2, experiment3], 100)"
227
278
]
228
279
},
280
+
{
281
+
"cell_type": "markdown",
282
+
"id": "5c9de038",
283
+
"metadata": {},
284
+
"source": [
285
+
"## Plotting Settings\n",
286
+
"\n",
287
+
"Define the plotting settings for the experiments. Plot terminal objective vs feasibility scatter plot for recommended solutions. "
# Configure 3 versions of the solver: CSA, CSA-N, and FCSA and set problem configuration. Set report_all_solutions = True meaning all incumbent solutions will be reported.
49
+
34
50
# %%
35
51
fixed_factors= {
36
52
"constraint_nodes": [6, 8], # nodes with stochastic constraints
# Define the plotting settings for the experiments. Plot terminal objective progress, terminal feasibility progress, objective progress curve, and feasiblity progress curve for all incumbent solutions.
# Configure 2 versions of the solver: CSA-N, and FCSA and set problem configuration. Set report_all_solutions = False meaning only recommended solutions will be reported.
0 commit comments