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

run_mld fails when there is no load. #53

Closed noahrhodes closed 3 years ago

noahrhodes commented 3 years ago

If there is no load, this line from the objective function fails because it takes the maximum of an empty matrix: https://github.com/lanl-ansi/PowerModelsRestoration.jl/blob/fe1a1bb33a02acb3ef5cb740dc2235fd169ead18/src/core/objective.jl#L149

This can happen if all load buses are outaged, such as through damage propagation of components. Then when the case data is read into the problem, it simplifies it by removing devices with status 0 and removes all loads from the problem.