Skip to content

Conversation

@SanjayJohnson02
Copy link
Collaborator

No description provided.

Copy link
Member

Choose a reason for hiding this comment

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

We should place the LICENSE file in this directory https://github.com/power-grid-lib/pglib-opf/blob/master/LICENSE

Copy link
Member

Choose a reason for hiding this comment

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

Also, create a short README file describing the source of the data and acknowledgement

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

second readme added in data folder with pglib license

Copy link
Member

Choose a reason for hiding this comment

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

where did we get this data?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The data is from solving the mpopf on cpu with 1e-8 tol. We make the assumption that the current implementation is accurate and future changes that change the optimal solution contribute an error

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ive added a comment in the code to indicate as much

return d + .2/srating*d^2
end

function runtests()
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if we need to roll out all the permutations. Can we use for loops to reduce redundancy and make it more concise?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ive added a loop for polar/rectangular form to cut down on some of the code. Im not sure we can make it much more efficient, and selectively using certain permutations would force us to unpack some of the loops. In prior testing ive run into bugs on select permutations so i think it is valuable to go through them all

@sshin23 sshin23 merged commit 78dc0ad into main May 14, 2025
3 checks passed
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.

3 participants