lanl-ansi / PowerModelsRestoration.jl

A PowerModels Extension for Optimization of Power Network Restoration
https://lanl-ansi.github.io/PowerModelsRestoration.jl/stable/
Other
22 stars 9 forks source link

Updates for PowerModels v0.15 #37

Closed ccoffrin closed 4 years ago

ccoffrin commented 4 years ago

closes #28, closes #30, closes #31, closes #33

@noahrhodes, some requests for you,

codecov[bot] commented 4 years ago

Codecov Report

Merging #37 into master will decrease coverage by 2.42%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #37      +/-   ##
==========================================
- Coverage   92.81%   90.38%   -2.43%     
==========================================
  Files          22       22              
  Lines        1447     1404      -43     
==========================================
- Hits         1343     1269      -74     
- Misses        104      135      +31     
Impacted Files Coverage Δ
src/util/iterative_restoration.jl 84.79% <0.00%> (-12.35%) :arrow_down:
src/core/data.jl 80.93% <0.00%> (-1.89%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 216d623...30ab870. Read the comment docs.

ccoffrin commented 4 years ago

Note, tests are passing on os x. I have an inquiry out to @blegat, to see if he has any insights on the linux issue.

noahrhodes commented 4 years ago

As for using the "initial state network 0", my view on it is that we have a base damaged network. Then:

  1. A repair is selected in network 0.
  2. It takes time to repair (storage energy is going down)
  3. The device is repaired and active in network 1

The initial condition and the time that the repair takes matters in the context of energy storage. My view is that the device becomes active in network N but repairs happened during the previous network.

ccoffrin commented 4 years ago

@noahrhodes, I moved the active_items as discussed. My current plan is to tag v0.2.1, then wait a day or two to see if we can get some insights on the cause of the Linux failure. If not, we will omit that test, merge this and tag v0.3.

We should have a call to discuss the explicit modeling of initial state and we can plan any updates along those lines after this release.

ccoffrin commented 4 years ago

Let me know if you have any reason to delay this plan.

ccoffrin commented 4 years ago

@noahrhodes, to close the loop up on this point. The core issue with the Linux seems to be a JuMP bug (details here, https://github.com/JuliaOpt/JuMP.jl/issues/2187). So I have commented out the test until the issue is resolved in JuMP. If you run into the issue in practice, you can work around it by deactivating buses where the error occurs.