Skip to content

Commit

Permalink
add warning and note to changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoffrin committed Jan 17, 2020
1 parent 6fad891 commit 374c1e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ PowerModels.jl Change Log
- nothing

### v0.14.0
- Made storage state constraints more robust in multinetwork data (#653)
- Changed post_* function names to build_* (#611) (breaking)
- Updated core function names to instantiate_model and build_result (breaking)
- Made problem naming more consistent (#644) (breaking)
Expand Down
1 change: 1 addition & 0 deletions src/core/constraint_template.jl
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ function constraint_storage_state(pm::AbstractPowerModel, i::Int, nw_1::Int, nw_
constraint_storage_state(pm, nw_1, nw_2, i, storage["charge_efficiency"], storage["discharge_efficiency"], time_elapsed)
else
# if the storage device has status=0 in nw_1, then the stored energy variable will not exist. Initialize storage from data model instead.
Memento.warn(_LOGGER, "storage component $(i) was not found in network $(nw_1) while building constraint_storage_state between networks $(nw_1) and $(nw_2). Using the energy value from the storage component in network $(nw_2) instead")
constraint_storage_state_initial(pm, nw_2, i, storage["energy"], storage["charge_efficiency"], storage["discharge_efficiency"], time_elapsed)
end
end
Expand Down

0 comments on commit 374c1e4

Please sign in to comment.