Skip to content

Conversation

@hhijazi
Copy link
Member

@hhijazi hhijazi commented Oct 28, 2025

Description

New acopf polar branch using nlfuncs

@hhijazi
Copy link
Member Author

hhijazi commented Oct 29, 2025

Looks like I can't edit the reviewer tab, @simonbowly can you please assign yourself?

@hhijazi hhijazi mentioned this pull request Oct 29, 2025
2 tasks
@simonbowly simonbowly self-requested a review October 30, 2025 05:12
@JaromilNajman
Copy link
Contributor

I will start working on the docs and API once this is merged.

Copy link
Contributor

@JaromilNajman JaromilNajman left a comment

Choose a reason for hiding this comment

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

I have a few comments and questions.

@JaromilNajman
Copy link
Contributor

Once this branch is merged, I will take care of the docs. I see that you already adjusted the API and tests.

@simonbowly
Copy link
Member

Thanks for reviewing the code @JaromilNajman! If you're happy I'm happy. For the docs I guess there is not much to do, unless you wanted to add more details about the polar formulation? Other than that it's just mentioning the new opftype options, which I think are already done in the docsstring here.

@JaromilNajman
Copy link
Contributor

For the docs I guess there is not much to do, unless you wanted to add more details about the polar formulation?

I wanted to add a subsection in https://gurobi-optimods.readthedocs.io/en/stable/mods/opf/opf_specification.html about "Polar Formulation". Nothing big, just to have it complete.

If we want polar to be the new default, then we need to adjust the docs as well, since the values for the example we provide will change slightly.

Other than that it's just mentioning the new opftype options, which I think are already done in the docsstring here.

What do you mean? Wouldn't we have to explain the new settings in opf.rst under Solving an OPF Problem?

@JaromilNajman
Copy link
Contributor

@simonbowly Could you please add me as a reviewer? Then you could accept the changes and I can keep reviewing. This way the branch would be ready to merge once I am happy :)

@simonbowly
Copy link
Member

What do you mean? Wouldn't we have to explain the new settings in opf.rst under Solving an OPF Problem?

Ah yes, maybe there's more than I thought. I'll leave it to you.

Could you please add me as a reviewer? Then you could accept the changes and I can keep reviewing. This way the branch would be ready to merge once I am happy :)

Yep, no need to wait for me. You don't need to be a reviewer to add comments, and reviews don't block anything on this repo anyway. The easiest way may be for Hassan to give you write access to his fork, then you can just push to this branch. Or, you could prepare the docs changes on a different branch with a separate PR.

Copy link
Contributor

@JaromilNajman JaromilNajman 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 comments. Looks good otherwise.

@hhijazi
Copy link
Member Author

hhijazi commented Nov 10, 2025

@simonbowly I think we're ready to merge this one now.

@simonbowly
Copy link
Member

@hhijazi or @JaromilNajman I ran into a bug when testing AC with branch switching (some tests were skipped, they're now re-enabled). Could you please review the fixes in 0e61518?

@JaromilNajman
Copy link
Contributor

This should be the correct fix. Let's see what @hhijazi says.

@hhijazi
Copy link
Member Author

hhijazi commented Nov 13, 2025

Looks good to me, thanks Simon!

@simonbowly simonbowly merged commit 7ab8dc8 into Gurobi:main Nov 13, 2025
11 checks passed
@simonbowly
Copy link
Member

Great, merged! @JaromilNajman please go ahead with any docs changes needed

@simonbowly
Copy link
Member

Thanks for your great work on this @hhijazi :-)

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