Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompilation is broken due to constraint_power_magnitude_sqr_on_off #73

Closed
noahrhodes opened this issue Apr 18, 2024 · 1 comment · Fixed by #74
Closed

Precompilation is broken due to constraint_power_magnitude_sqr_on_off #73

noahrhodes opened this issue Apr 18, 2024 · 1 comment · Fixed by #74

Comments

@noahrhodes
Copy link
Collaborator

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
Copy link

Robbybp commented Oct 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants