Skip to content

Commit

Permalink
adds @smpark7 suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Sun Myung Park <[email protected]>
  • Loading branch information
samgdotson and smpark7 authored Mar 2, 2024
1 parent f377187 commit 3759275
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/source/examples/capacity_expansion_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"phase_shift = 0 # horizontal shift [radians]\n",
"base_shift = 2 # vertical shift [units of demand]\n",
"hours = np.linspace(0,N,N)\n",
"total_demand = 185 # [MW], sets the total demand [units of energy]\n",
"total_demand = 185 # [MWh], sets the total demand [units of energy]\n",
"\n",
"demand = (np.sin((hours*np.pi/n_hours*2+phase_shift))*-1+np.ones(N)*(base_shift+1))\n",
"\n",
Expand Down Expand Up @@ -405,7 +405,7 @@
"\n",
"model = DispatchModel(technology_list=technologies,\n",
" net_demand=demand)\n",
"model.solve(solver='cbc')"
"model.solve(solver=solver)"
]
},
{
Expand Down Expand Up @@ -599,7 +599,7 @@
"\n",
"model = DispatchModel(technology_list=[technologies[1]],\n",
" net_demand=net_dem)\n",
"model.solve(solver='cbc')"
"model.solve(solver=solver)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/dispatch_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
}
],
"source": [
"total_demand = 185 # [MW], sets the total demand [units of energy]\n",
"total_demand = 185 # [MWh], sets the total demand [units of energy]\n",
"demand = (np.sin((hours*np.pi/n_hours*2+phase_shift))*-1+np.ones(N)*(base_shift+1))\n",
"\n",
"np.random.seed(1234) # sets the seed for repeatability\n",
Expand Down

0 comments on commit 3759275

Please sign in to comment.