Skip to content

Commit

Permalink
Add last_soc variable for initial condition in OPF scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuan276 committed Jul 2, 2024
1 parent c9d3a59 commit 306f115
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/01_opf_2018Baseline.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@

# No initial condition for the first day
last_gen = None
last_soc = None

# Loop through all days
for d in range(len(timestamp_list)):
Expand Down
1 change: 1 addition & 0 deletions examples/02_opf_2030CLCPA.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@

# No initial condition for the first day
last_gen = None
last_soc = None

# Loop through all days
for d in range(len(timestamp_list)):
Expand Down

0 comments on commit 306f115

Please sign in to comment.