Dyler Sprint#61
Open
KaStephan wants to merge 83 commits into
Open
Conversation
… to include those parameters in case of an SOCP
…a wider range of voltage levels
…a wider range of voltage levels and kimit warnings.
…he slack voltage again. Finished reactive power import. Made reactive power import and reactive slack variables SOCP dependend
Replaces the for loop with a while loop. By dynamically calculating the window's end using min(), it ensures that the final, potentially shorter, segment of data is always processed correctly.
The previous logic could crash with a KeyError if a variable from an old window didn't exist in the new one. This commit wraps the fixing call in a try/except block to gracefully handle this, making the process robust. The logic for determining which variables to fix has also been simplified for clarity.
Introduces logic to automatically detect the required k-padding by inspecting the first timestep key from the input data.
…rformance Improve building model performance
…ameters and variables.
Added the Branch Flow Model for AC-OPF SOCP and separated the different load flow formulations (DC-OPF, AC-OPF Branch Flow Model, AC-OPF Node Injection Model,...)
…rFlow_rule and eSOCP_ReactivePowerFlow_rule to j instead of i.
Feature/socp exactness
60b9c0d to
a2e0c9d
Compare
Updates the branch flow model to correctly implement the soft voltage constraint. Removes the old soft voltage constraint formulation from the node injection model.
Refines the SOCP branch flow model by removing slack variables from the physical voltage drop and line flow equations. Slacks are now correctly applied only to the soft limit constraints to ensure the physics equations use the actual squared voltage magnitude. Also disables dual suffix initialization in the solver setup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.