Skip to content

Commit 8b6b32e

Browse files
authored
Merge pull request #62 from ndcbe/contributed-notebooks
Minor changes for Project 2 notebooks
2 parents cb86991 + a840eb0 commit 8b6b32e

7 files changed

+64
-54
lines changed

Diff for: notebooks/5-dev/Parmest-tutorial.ipynb

+3-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"cell_type": "code",
16-
"execution_count": 24,
16+
"execution_count": null,
1717
"metadata": {
1818
"colab": {
1919
"base_uri": "https://localhost:8080/"
@@ -31,12 +31,10 @@
3131
" import helper\n",
3232
" helper.install_idaes()\n",
3333
" helper.install_ipopt()\n",
34-
" helper.set_plotting_style()\n",
35-
"\n",
3634
"else:\n",
37-
" # Make sure helper is installed locally on your system in the same file path.\n",
35+
" sys.path.insert(0, '../')\n",
3836
" import helper\n",
39-
" helper.set_plotting_style()"
37+
"helper.set_plotting_style()"
4038
]
4139
},
4240
{

Diff for: notebooks/contrib-dev/Deterministic_Global_Optimization.ipynb

+6-1
Original file line numberDiff line numberDiff line change
@@ -2231,7 +2231,12 @@
22312231
"* Solvers like Couenne or BARON have the capability to find the global optima of certain NLPs.\n",
22322232
"* Methods like Spatial branch and bound can guarantee the optimiality of solutions found for non linear programs with poor initialization given the complexity of the GO problem falls within certain assumptions.\n",
22332233
"*Spatial branch and bound methods guarantee convergence but not in a finite number of steps.\n",
2234-
"* Spatial Branch and Bound Methods partition the feasible region into subregions and enumerate each subregions optimal solution. These solutions converge to a globally optimal solution."
2234+
"* Spatial Branch and Bound Methods partition the feasible region into subregions and enumerate each subregions optimal solution. These solutions converge to a globally optimal solution.\n",
2235+
"\n",
2236+
"Future work ideas:\n",
2237+
"* Experiment with different settings in Counene\n",
2238+
"* Add instructions on running BARON on the [CRC](https://crc.nd.edu)\n",
2239+
"* Show how solver time (Counene versus Ipopt) changes with the number of circles."
22352240
]
22362241
},
22372242
{

Diff for: notebooks/contrib-dev/Disaster_Response_Plan.ipynb

+11-1
Original file line numberDiff line numberDiff line change
@@ -1502,8 +1502,18 @@
15021502
"source": [
15031503
"Through this example, we were able to go beyond the reference material, by creating a new and unique application of the optimization problem. By applying this to a real life situation, we were able to create a simplified model to represent a real life situation that could be expanded to create real social good.\n",
15041504
"\n",
1505-
"For example, government planning can be used to understand based on existing data, what regions to distribute to which can expediate the process."
1505+
"For example, government planning can be used to understand based on existing data, what regions to distribute to which can expediate the process.\n",
1506+
"\n",
1507+
"Future Work Ideas:\n",
1508+
"* Refine the Monte Carlo sensitivity analysis\n",
1509+
"* Adjust input data such that there will be a supply shortage at the final time"
15061510
]
1511+
},
1512+
{
1513+
"cell_type": "markdown",
1514+
"id": "5592440c",
1515+
"metadata": {},
1516+
"source": []
15071517
}
15081518
],
15091519
"metadata": {

Diff for: notebooks/contrib-dev/advanced_stochastic_programming.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,9 @@
14521452
"* Gain a deeper understanding of two-stage stochastic optimization, focusing on its application to agricultural systems under uncertainty\n",
14531453
"* Interpret and analyze optimization results, drawing meaningful conclusions about resource allocation and decision-making in uncertain environments\n",
14541454
"\n",
1455-
"A major takeaway from this work is the recognition that alternative numerical methods, such as the half-grid approach, can effectively address the \"curse of dimensionality\" associated with full-grid methods. By accounting for the reality that perfect information is rarely available, we demonstrated how modeling uncertainty using Gaussian distributions leads to more realistic scenarios. Finally, this project highlighted the significance of two-stage stochastic optimization in tackling real-world problems, emphasizing its role in enabling robust and informed decision-making under uncertainty."
1455+
"A major takeaway from this work is the recognition that alternative numerical methods, such as the half-grid approach, can effectively address the \"curse of dimensionality\" associated with full-grid methods. By accounting for the reality that perfect information is rarely available, we demonstrated how modeling uncertainty using Gaussian distributions leads to more realistic scenarios. Finally, this project highlighted the significance of two-stage stochastic optimization in tackling real-world problems, emphasizing its role in enabling robust and informed decision-making under uncertainty.\n",
1456+
"\n",
1457+
"Future work: refactor code to use [blocks](../../notebooks/4/blocks.ipynb)."
14561458
]
14571459
},
14581460
{

Diff for: notebooks/contrib-dev/hot_air_balloon.ipynb

+30-44
Large diffs are not rendered by default.

Diff for: notebooks/contrib-dev/multi_objective.ipynb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,11 @@
12841284
"* Pyomo continues to be a powerful tool in solving complex dynamic optimization problems.\n",
12851285
"* Multi-objective optimization provides control over desired outcomes and products.\n",
12861286
"* Multi-objective optimization identifies solutions that are robust to stakeholders decision.\n",
1287-
"* Proper modeling of the problem is key to obtaining quality results."
1287+
"* Proper modeling of the problem is key to obtaining quality results.\n",
1288+
"\n",
1289+
"Future work ideas:\n",
1290+
"* Compare the Pareto sets generated with the two methods\n",
1291+
"* Add another example with a non-convex Pareto set to highlight the difference between the methods"
12881292
]
12891293
},
12901294
{

Diff for: notebooks/contrib-dev/portfolio_optimization_extended.ipynb

+6-1
Original file line numberDiff line numberDiff line change
@@ -2929,7 +2929,12 @@
29292929
"\n",
29302930
"The results further highlight that sugar and ethanol are particularly sensitive to regulatory constraints, with the regulated market setting a ceiling on potential earnings, especially when production surpluses increase supply. This condition may compel producers to prioritize free markets when aiming for higher profitability, albeit with increased exposure to market risks.\n",
29312931
"\n",
2932-
"Overall, the model provides a comparative framework, guiding decision-makers to balance between predictable returns and potential profits within an uncertain market environment. This perspective is especially valuable for industries where the regulated and free markets can operate in tandem, allowing for diversified approaches that mitigate risk while maximizing revenue opportunities.\n"
2932+
"Overall, the model provides a comparative framework, guiding decision-makers to balance between predictable returns and potential profits within an uncertain market environment. This perspective is especially valuable for industries where the regulated and free markets can operate in tandem, allowing for diversified approaches that mitigate risk while maximizing revenue opportunities.\n",
2933+
"\n",
2934+
"Future work ideas:\n",
2935+
"* Add more narrative at the beginning to discuss how this goes beyond the previous example/notebook\n",
2936+
"* More clearly explain (using mathematical symbols) how the uncertainty model is being constructed\n",
2937+
"* Explore [advanced stochastic programming](../contrib/advanced_stochastic_programming.ipynb) methods.\n"
29332938
]
29342939
},
29352940
{

0 commit comments

Comments
 (0)