Skip to content

Commit

Permalink
examples for running different scenarios in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuan276 committed Dec 4, 2024
1 parent 1d7b00c commit d31cc67
Show file tree
Hide file tree
Showing 4 changed files with 1,378 additions and 53 deletions.
5 changes: 4 additions & 1 deletion examples/ex_opf_2018NewParams.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1756,6 +1756,9 @@
"nygrid_sim_s1.set_esr_init_data(esr_init=init_soc)\n",
"\n",
"# Calculate hours since last startup and shutdown\n",
"hour_since_last_startup = np.zeros(nygrid_sim_s0.NG_avail, dtype=int)\n",
"hour_since_last_shutdown = np.zeros(nygrid_sim_s0.NG_avail, dtype=int)\n",
"\n",
"for ii in range(nygrid_sim_s0.NG_avail):\n",
" startup_record = results_s0['genStartup'][:hour_before_start][ii]\n",
" if startup_record.sum() > 0:\n",
Expand Down
559 changes: 534 additions & 25 deletions examples/ex_opf_2030BaselineCase.ipynb

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions examples/ex_opf_2030ContractCase.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,9 @@
"nygrid_sim_s1.set_esr_init_data(esr_init=init_soc)\n",
"\n",
"# Calculate hours since last startup and shutdown\n",
"hour_since_last_startup = np.zeros(nygrid_sim_s0.NG_avail, dtype=int)\n",
"hour_since_last_shutdown = np.zeros(nygrid_sim_s0.NG_avail, dtype=int)\n",
"\n",
"for ii in range(nygrid_sim_s0.NG_avail):\n",
" startup_record = results_s0['genStartup'][:hour_before_start][ii]\n",
" if startup_record.sum() > 0:\n",
Expand Down
864 changes: 837 additions & 27 deletions examples/ex_opf_2030StateScenario.ipynb

Large diffs are not rendered by default.

0 comments on commit d31cc67

Please sign in to comment.