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

Remove constraint_power_magnitude_sqr_on_off(pm::_PM.AbstractQCWRModel ...) #74

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

noahrhodes
Copy link
Collaborator

Closes #73

Copy link

@Robbybp Robbybp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with removing this unsupported code

@noahrhodes noahrhodes merged commit 3838fc3 into master Oct 30, 2024
13 checks passed
@noahrhodes noahrhodes deleted the fix_73 branch October 30, 2024 17:42
Comment on lines -140 to -144
if isinteger(z)
z_lb = z_ub = z
else
z_lb, z_ub = InfrastructureModels.variable_domain(z)
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting here, while I remember, that this "if block" is the main difference between this and the PowerModels implementation. If this function is necessary for anything, we should (a) document the purpose of this change and (b) find a way to implement it without redefining the PowerModels method.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This goes back 5 years, but if I remember right, the intent is that only damaged lines have a binary variable. Non-damaged lines have the non-switching power flow constraints, while damaged lines have the switching power flow constraints.

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

Successfully merging this pull request may close these issues.

Precompilation is broken due to constraint_power_magnitude_sqr_on_off
2 participants