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

Precompilation is broken due to `constraint_power_magnitude_sqr_on_off` #73

Closed noahrhodes closed 4 hours ago

noahrhodes commented 6 months ago

the function _PM.constraint_power_magnitude_sqr_on_off(pm::_PM.AbstractQCWRModel, n::Int, i, f_bus, arc_from, tm) overwrite the PowerModels function by the same name, breaking precompilation.

However, QC is not currently a supported formulation for these problems, and has no test coverage. This dead code breaks precompilation for no good reason.

Robbybp commented 5 hours ago

Just hit this myself. Just noting here that adding __precompile__(false) to the top of the PowerModelsRestoration.jl file is another workaround.