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

FIX: SOC and LinDist3Flow formulations for elements with missing phases #428

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

keatsig
Copy link
Collaborator

@keatsig keatsig commented Feb 13, 2023

This PR fixes bug with SOC and LinDist3Flow formulations where diagonal entries of matrix variables were defined with type Vector{JuMP.VariableRef} (no information about connections) instead of JuMP.Containers.DenseAxisArray, leading to errors when single- or two-phase elements (nodes, lines, switches) were present in network.

Also, this PR adds loads/generator models which are connected between two secondary terminals (240V devices) of center-tapped transformers for SOC formulation.

@codecov
Copy link

codecov bot commented Feb 13, 2023

Codecov Report

Merging #428 (2a3f3ae) into main (e11aa65) will increase coverage by 0.38%.
The diff coverage is 94.52%.

@@            Coverage Diff             @@
##             main     #428      +/-   ##
==========================================
+ Coverage   72.12%   72.50%   +0.38%     
==========================================
  Files          61       61              
  Lines       15634    15691      +57     
==========================================
+ Hits        11276    11377     +101     
+ Misses       4358     4314      -44     
Impacted Files Coverage Δ
src/form/bf_mx_soc.jl 92.45% <92.59%> (+8.66%) ⬆️
src/form/bf_mx.jl 62.43% <100.00%> (+5.03%) ⬆️
src/form/bf_mx_lin.jl 88.21% <100.00%> (+0.09%) ⬆️
src/core/variable_mx.jl 78.81% <0.00%> (+2.54%) ⬆️
src/form/shared.jl 54.63% <0.00%> (+3.41%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@pseudocubic pseudocubic marked this pull request as ready for review February 14, 2023 14:57
@pseudocubic pseudocubic added Type: Bug Something isn't working Type: Enhancement New feature or request Category: Formulations Network Formulation labels Feb 14, 2023
src/form/bf_mx.jl Outdated Show resolved Hide resolved
Copy link
Collaborator

@pseudocubic pseudocubic left a comment

Choose a reason for hiding this comment

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

Two minor changes needed, but otherwise looks good

@pseudocubic pseudocubic merged commit c638a9a into lanl-ansi:main Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Formulations Network Formulation Type: Bug Something isn't working Type: Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants